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