public override void AddEvent(CapturingLoggerEvent le) { Console.WriteLine(le.Source.Name + ": " + le.RenderedMessage); if (le.Level >= LogLevel.Warn) { base.AddEvent(le); } }
public override void AddEvent(CapturingLoggerEvent loggerEvent) { base.AddEvent(loggerEvent); var shortSourceName = loggerEvent.Source.Name.Split('.').Last(); output.WriteLine($"{shortSourceName} : {loggerEvent.RenderedMessage}"); }