Inheritance: Microsoft.VisualBasic.Logging.FileLogTraceListener
示例#1
0
 public XenService()
 {
     Debug.Print("GuestAgent Init");
     try
     {
         tlog = new TimeDateTraceListener("guest");
         Trace.Listeners.Add(tlog); Trace.WriteLine("This is all");
     }
     catch (Exception e)
     {
         EventLog.WriteEntry("Failed to create management agent debug log : " + e.ToString());
     }
     this.ServiceName = Branding.Instance.getString("BRANDING_guestAgent");
     this.CanStop     = true;
     this.CanHandleSessionChangeEvent = true;
     this.CanHandlePowerEvent         = true;
     this.AutoLog     = true;
     servicestatelock = new object();
     Debug.Print("GuestAgent Init Done");
 }
示例#2
0
 public XenService()
 {
     Debug.Print("GuestAgent Init");
     try
     {
         tlog = new TimeDateTraceListener("guest");
         Trace.Listeners.Add(tlog); Trace.WriteLine("This is all");
     }
     catch (Exception e)
     {
         EventLog.WriteEntry("Failed to create management agent debug log : " + e.ToString());
     }
     this.ServiceName = Branding.Instance.getString("BRANDING_guestAgent");
     this.CanStop = true;
     this.CanHandleSessionChangeEvent = true;
     this.CanHandlePowerEvent = true;
     this.AutoLog = true;
     servicestatelock = new object();
     Debug.Print("GuestAgent Init Done");
 }
 public XenService()
 {
     Debug.Print("GuestAgent Init");
     tlog = new TimeDateTraceListener("guest");
     Trace.Listeners.Add(tlog); Trace.WriteLine("This is all");
     this.ServiceName = Branding.Instance.getString("BRANDING_guestAgent");
     this.CanStop = true;
     this.CanHandleSessionChangeEvent = true;
     this.CanHandlePowerEvent = true;
     this.AutoLog = true;
     servicestatelock = new object();
     Debug.Print("GuestAgent Init Done");
 }
 public XenService()
 {
     Debug.Print("XenService Init");
     tlog = new TimeDateTraceListener("guest");
     Trace.Listeners.Add(tlog); Trace.WriteLine("This is all");
     this.ServiceName = "Citrix Xen Guest Agent";
     this.CanStop = true;
     this.CanHandleSessionChangeEvent = true;
     this.CanHandlePowerEvent = true;
     this.AutoLog = true;
     servicestatelock = new object();
     Debug.Print("XenService Init Done");
 }