예제 #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
     });
 }
예제 #2
0
 public void Flush()
 {
     while (_messages.Count > 0)
     {
         var message = _messages.Dequeue();
         _inner.Write(message);
     }
     _inner.Flush();
 }
예제 #3
0
 public void Write(LogMessage message)
 {
     _inner.Write(_decorator(message));
 }