Class
ConsoleMonsterSink
ConsoleMonster.Extensions.Serilog
Renders Serilog events with the same entry renderer as ConsoleMonster's ILogger provider.
Inheritance
- object
- ConsoleMonsterSink
Constructors
public ConsoleMonsterSink(ConsoleMonsterSinkOptions? options = null) #Creates a sink with the supplied options, or the defaults.
Parameters
- options ConsoleMonster.Extensions.Serilog.ConsoleMonsterSinkOptions? = null
- Line rendering and destination options.
Methods
public void Emit(LogEvent logEvent) #Renders a Serilog event with its template values, properties and exception through ConsoleMonster.
Parameters
- logEvent Serilog.Events.LogEvent
- The event to render.
Exceptions
ArgumentNullException– The event is null.
Inherited Methods
Properties
public ConsoleMonsterSinkOptions Options { get; } #The sink's rendering options.