public static void info(string message) { LogEvent logEvent = new LogEvent(); logEvent.Message = message; logEvent.Type = LogEvent.LOG_EVENT_TYPE.INFO; GetInstance().NotifyLogEvent(logEvent); }
public void OnLogEvent(LogEvent logEvent) { Console.WriteLine(logEvent.Message); }
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 }); }