/// <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); }
/// <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); }