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