Example #1
0
 public static void WriteLine(string text, LogCategory classification, params object[] args)
 {
     try
     {
         Console.WriteLine(string.Format(classification.Name + ": " + text, args));
         if (OnLogEvent != null)
         {
             OnLogEvent(text, classification.Name, args);
         }
     }
     catch (Exception exception)
     {
         ErrorLog.WriteLine(exception);
     }
 }
Example #2
0
 public static void WriteLine(string text, LogCategory classification, params object[] args)
 {
     try
     {
         if (args != null)
         {
             int length = args.Length;
         }
         if (OnLogEvent != null)
         {
             OnLogEvent(text, classification.Name, args);
         }
     }
     catch (Exception exception)
     {
         ErrorLog.WriteLine(exception);
     }
 }