Beispiel #1
0
 public static void AddLog(string line)
 {
     if (type == 0)
     {
         LoggerC.AddLog(line);
     }
     if (type == 1)
     {
         LoggerPanel.AddLog(line);
     }
 }
Beispiel #2
0
 public static void AddLog(string line)
 {
     if (type == 0)
     {
         LoggerC.AddLog(line);
     }
     else
     if (panel != null)
     {
         panel.AddLog(line);
     }
 }
Beispiel #3
0
 public static void ExceptionInfo(string line)
 {
     if (type == 0)
     {
         LoggerC.ColoredConsoleWrite(ConsoleColor.Red, "Ignore this: sending exception information to log file.");
         LoggerC.AddLog(line);
     }
     if (type == 1)
     {
         LoggerPanel.ColoredConsoleWrite(ConsoleColor.Red, "Ignore this: sending exception information to log file.");
         LoggerPanel.AddLog(line);
     }
 }
Beispiel #4
0
 public static void ExceptionInfo(string line)
 {
     if (type == 0)
     {
         LoggerC.ColoredConsoleWrite(ConsoleColor.Red, line);
         LoggerC.AddLog(line);
     }
     if (type == 1)
     {
         LoggerC.ColoredConsoleWrite(ConsoleColor.Red, line);
         LoggerPanel.AddLog(line);
     }
 }
Beispiel #5
0
 public static void ExceptionInfo(string line)
 {
     if (type == 0)
     {
         LoggerC.ColoredConsoleWrite(ConsoleColor.Red, "Ignore this: sending exception information to log file.");
         LoggerC.AddLog(line);
     }
     else
     {
         try {
             if (panel != null)
             {
                 panel.ColoredConsoleWrite(ConsoleColor.Red, "Ignore this: sending exception information to log file.");
                 panel.AddLog(line);
             }
         } catch (Exception ex1) {
             AddLog(line + "\n" + ex1.ToString());
         }
     }
 }