Esempio n. 1
0
 public static void Log(this ILogMessageSink sink, LogLevel level, Exception ex, string message, params object[] args)
 {
     sink.Write(new LogMessage(level, message, args)
     {
         Exception = ex
     });
 }
Esempio n. 2
0
 public void Flush()
 {
     while (_messages.Count > 0)
     {
         var message = _messages.Dequeue();
         _inner.Write(message);
     }
     _inner.Flush();
 }
Esempio n. 3
0
 public void Write(LogMessage message)
 {
     _inner.Write(_decorator(message));
 }