コード例 #1
0
ファイル: Initializer.cs プロジェクト: zeroeagle1/ZAV
 private static void CreateLog(EventLogOptions eventLogOptions)
 {
     if (!EventLog.Exists(eventLogOptions.LogName))
     {
         EventLog.CreateEventSource(eventLogOptions.LogSource, eventLogOptions.LogSource);
     }
 }
コード例 #2
0
ファイル: Initializer.cs プロジェクト: zeroeagle1/ZAV
 public static EventLog GetLogInstance(EventLogOptions eventLogOptions)
 {
     return(new EventLog(eventLogOptions.LogName)
     {
         Source = eventLogOptions.LogSource
     });
 }
コード例 #3
0
ファイル: Initializer.cs プロジェクト: zeroeagle1/ZAV
 public static void InitEventLog(EventLogOptions eventLogConfig, WindowsWatcherOptions workerConfig)
 {
     CreateLog(eventLogConfig);
     CreateLogView();
 }