Ejemplo n.º 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));
     }
 }
Ejemplo n.º 2
0
 private static void LogEventHandler(LogEventNotificationTypes logEventNotificationType,
                                     string logKey,
                                     string shortLongCode,
                                     string message)
 {
     Console.WriteLine(message);
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 6
0
 private static void LogEventHandler(LogEventNotificationTypes logEventNotificationType, string logKey, string shortLongCode, string message)
 {
     Console.WriteLine(message);
 }
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }