/// <summary> Called to write out to the log </summary> /// <param name="logEventNotificationType"></param> /// <param name="message"></param> /// <param name="logValues"></param> private void WriteLog(LogEventNotificationTypes logEventNotificationType, string message, params object[] logValues) { if (LogEventHandler != null) { LogEventHandler(logEventNotificationType, LogKey, ShortLongCode, string.Format(message, logValues)); } }
private static void LogEventHandler(LogEventNotificationTypes logEventNotificationType, string logKey, string shortLongCode, string message) { Console.WriteLine(message); }
/// <summary> Called to log an event </summary> /// <param name="logEventNotificationType"></param> /// <param name="shortLongCode"></param> /// <param name="message"></param> /// <param name="logKey"></param> public void LogEventConnectionHandler(LogEventNotificationTypes logEventNotificationType, string logKey, string shortLongCode, string message) { if (LogEventHandler != null) { LogEventHandler(logEventNotificationType, logKey, shortLongCode, message); } }
/// <summary> Called to write out to the log </summary> /// <param name="logEventNotificationType"></param> /// <param name="message"></param> private void WriteLog(LogEventNotificationTypes logEventNotificationType, string message) { if (LogEventHandler != null) { LogEventHandler(logEventNotificationType, LogKey, ShortLongCode, message); } }
private void LogEventHandler(LogEventNotificationTypes logEventNotificationType, string logKey, string shortLongCode, string message) { if (AllowLog) { AddLog(logKey, "log Type=" + logEventNotificationType.ToString() + "|message=" + message , "LOG", shortLongCode, "LogEventHandler", Color.Gray); } }