예제 #1
0
 public static void Error(string str)
 {
     if (type == 0)
     {
         LoggerC.Error(str);
     }
     if (type == 1)
     {
         LoggerPanel.Error(str);
     }
 }
예제 #2
0
 public static void Info(string str)
 {
     if (type == 0)
     {
         LoggerC.Info(str);
     }
     if (type == 1)
     {
         LoggerPanel.Info(str);
     }
 }
예제 #3
0
 public static void Warning(string str)
 {
     if (type == 0)
     {
         LoggerC.Warning(str);
     }
     if (type == 1)
     {
         LoggerPanel.Warning(str);
     }
 }
예제 #4
0
 public static void AddLog(string line)
 {
     if (type == 0)
     {
         LoggerC.AddLog(line);
     }
     if (type == 1)
     {
         LoggerPanel.AddLog(line);
     }
 }
예제 #5
0
 public static void ColoredConsoleWrite(ConsoleColor color, string line, LogLevel level = LogLevel.Info)
 {
     if (type == 0)
     {
         LoggerC.ColoredConsoleWrite(color, line, level);
     }
     if (type == 1)
     {
         LoggerPanel.ColoredConsoleWrite(color, line, level);
     }
 }
예제 #6
0
 public static void Write(string line, LogLevel level = LogLevel.Info)
 {
     if (type == 0)
     {
         LoggerC.Write(line, level);
     }
     if (type == 1)
     {
         LoggerPanel.Write(line, level);
     }
 }
예제 #7
0
 public static void Debug(string str)
 {
     if (type == 0)
     {
         LoggerC.Debug(str);
     }
     if (type == 1)
     {
         LoggerPanel.Debug(str);
     }
 }
예제 #8
0
 public static void AddLog(string line)
 {
     if (type == 0)
     {
         LoggerC.AddLog(line);
     }
     else
     if (panel != null)
     {
         panel.AddLog(line);
     }
 }
예제 #9
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);
     }
 }
예제 #10
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);
     }
 }
예제 #11
0
 public static void Info(string str)
 {
     if (type == 0)
     {
         LoggerC.Info(str);
     }
     else
     {
         try {
             if (panel != null)
             {
                 panel.Info(str);
             }
         } catch (Exception ex1) {
             AddLog(str + ex1.ToString());
         }
     }
 }
예제 #12
0
 public static void Write(string line, LogLevel level = LogLevel.Info)
 {
     if (type == 0)
     {
         LoggerC.Write(line, level);
     }
     else
     {
         try {
             if (panel != null)
             {
                 panel.Write(line, level);
             }
         } catch (Exception ex1) {
             AddLog(line + ex1.ToString());
         }
     }
 }
예제 #13
0
 public static void ColoredConsoleWrite(ConsoleColor color, string line, LogLevel level = LogLevel.Info)
 {
     if (type == 0)
     {
         LoggerC.ColoredConsoleWrite(color, line, level);
     }
     else
     {
         try {
             if (panel != null)
             {
                 panel.ColoredConsoleWrite(color, line, level);
             }
         } catch (Exception ex1) {
             AddLog(line + ex1.ToString());
         }
     }
 }
예제 #14
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());
         }
     }
 }