Esempio n. 1
0
 public void WriteLine(String log, LogLevel level)
 {
     if (Level > level || level == LogLevel.MuteLog)
     {
         return;
     }
     lock (instance)
     {
         WriteTime(level);
         _output.WriteLine(log, level);
     }
 }
Esempio n. 2
0
 private void WriteTime(LogLevel level, bool tag = false)
 {
     _output.WriteLine(DateTime.Now + "   ", level, tag);
 }