예제 #1
0
 public static void info(string message)
 {
     LogEvent logEvent = new LogEvent();
     logEvent.Message = message;
     logEvent.Type = LogEvent.LOG_EVENT_TYPE.INFO;
     GetInstance().NotifyLogEvent(logEvent);
 }
예제 #2
0
 public void OnLogEvent(LogEvent logEvent)
 {
     Console.WriteLine(logEvent.Message);
 }
예제 #3
0
 private void NotifyLogEvent(LogEvent logEvent)
 {
     foreach (ILogHandler handler in _logHandlers)
     {
         handler.OnLogEvent(logEvent);
     }
 }
 public void OnLogEvent(LogEvent logEvent)
 {
     //Add log entry to list
     userDispatcher.Invoke(del, new object[] { logEvent.Message });
 }