Updated Branches:
  refs/heads/4.3-forward 29e44b1b6 -> 8ef47e8ff

CLOUDSTACK-5936: Hyper-V agent should log to the windows event log. Changed the 
default
log appender for the agent.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8ef47e8f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8ef47e8f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8ef47e8f

Branch: refs/heads/4.3-forward
Commit: 8ef47e8ff3fd0997c2680f4068c4dadb7bb3b511
Parents: 29e44b1
Author: Devdeep Singh <devd...@gmail.com>
Authored: Thu Jan 23 19:00:27 2014 +0530
Committer: Devdeep Singh <devd...@gmail.com>
Committed: Thu Jan 23 15:20:21 2014 +0530

----------------------------------------------------------------------
 .../DotNet/ServerResource/AgentShell/AgentService.Designer.cs | 2 +-
 .../hyperv/DotNet/ServerResource/AgentShell/App.config        | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8ef47e8f/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs
----------------------------------------------------------------------
diff --git 
a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs
 
b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs
index 8544277..4bf424f 100644
--- 
a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs
+++ 
b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs
@@ -45,7 +45,7 @@ namespace CloudStack.Plugin.AgentShell
         private void InitializeComponent()
         {
             components = new System.ComponentModel.Container();
-            this.ServiceName = "CloudStack ServerResource";
+            this.ServiceName = Program.serviceName;
         }
 
         #endregion

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8ef47e8f/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config
----------------------------------------------------------------------
diff --git 
a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config 
b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config
index 68ab80e..b783dfe 100644
--- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config
+++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config
@@ -10,9 +10,9 @@
     </sectionGroup>
   </configSections>
 
-  <startup> 
+  <startup>
         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
-    </startup>
+  </startup>
 
   <log4net>
     <appender name="FileAppender" type="log4net.Appender.FileAppender">
@@ -25,13 +25,14 @@
     </appender>
     <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender">
       <appendToFile value="true" />
+      <param name="ApplicationName" value="CloudStack Hyper-V Agent" />
       <layout type="log4net.Layout.PatternLayout">
         <conversionPattern value="%date [%thread] %-5level %logger 
[%property{NDC}] - %message%newline"/>
       </layout>
     </appender>
     <root>
       <level value="ALL"/>
-      <appender-ref ref="FileAppender"/>
+      <appender-ref ref="EventLogAppender"/>
     </root>
   </log4net>
   

Reply via email to