Exemplo n.º 1
0
 /// <summary>
 /// Creates a Windows event log for the extender of ServiceExe.
 /// serviceName must be defined.
 /// </summary>
 public static ILogger CreateLog(string svcName)
 {
     windowsLogger = (WindowsLogger)Log.CreateLogger("Windows");
     windowsLogger.ApplicationName = svcName;
     WindowsLogger.CreateLog(svcName, svcName);
     return(windowsLogger);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a Windows event log for the extender of ServiceExe.
 /// serviceName must be defined.
 /// </summary>
 public static void CreateLog()
 {
     windowsLogger = (WindowsLogger)Log.CreateLogger("Windows");
     windowsLogger.ApplicationName = serviceName;
     WindowsLogger.CreateLog(serviceName, serviceName);
 }