Example #1
0
 /// <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));
     }
 }
Example #2
0
 private static void LogEventHandler(LogEventNotificationTypes logEventNotificationType,
                                     string logKey,
                                     string shortLongCode,
                                     string message)
 {
     Console.WriteLine(message);
 }
Example #3
0
 /// <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);
     }
 }
Example #4
0
 /// <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);
     }
 }
Example #5
0
 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);
     }
 }
Example #6
0
 private static void LogEventHandler(LogEventNotificationTypes logEventNotificationType, string logKey, string shortLongCode, string message)
 {
     Console.WriteLine(message);
 }
Example #7
0
 /// <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));
     }
 }
Example #8
0
 /// <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);
     }
 }
Example #9
0
 /// <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);
     }
 }