Example #1
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);
     }
 }
Example #2
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());
         }
     }
 }