Beispiel #1
0
 public void Write(string message, LogType level)
 {
     var entry = new LogEntry(message, level);
     this.Write(entry);
 }
Beispiel #2
0
 public void Write(LogEntry message)
 {
     _streamWriter.WriteLine(message);
 }
Beispiel #3
0
 public void Write(LogEntry message)
 {
     Console.WriteLine(message);
 }
Beispiel #4
0
 public void Write(LogEntry message)
 {
     foreach (var p in _logProviders)
     {
         if (MatchesStrategy(p))
         {
             p.Write(message);
         }
     }
 }