Ejemplo n.º 1
0
    public void OnLogMessage(string logName, LogLevel level, object message, Object context, Exception exception, IStackTrace location)
    {
        var formatted = BetterLogFormatter.GetFormattedLogLine(level, message, exception);

        writer.WriteLine(formatted);
    }
Ejemplo n.º 2
0
 public BetterLevelLogger(ILog log, LogLevel level)
 {
     this.log   = log;
     this.level = level;
 }