C# Class Serilog.Core.Sinks.SecondaryLoggerSink

Forwards log events to another logging pipeline. Copies the events so that mutations performed on the copies do not affect the originals.
The properties dictionary is copied, however the values within the dictionary (of type LogEventProperty are expected to be immutable.
Inheritance: ILogEventSink, IDisposable
ファイルを表示 Open project: serilog/serilog

Public Methods

Method Description
Dispose ( ) : void
Emit ( LogEvent logEvent ) : void
SecondaryLoggerSink ( ILogger logger, bool attemptDispose = false ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Emit() public method

public Emit ( LogEvent logEvent ) : void
logEvent Serilog.Events.LogEvent
return void

SecondaryLoggerSink() public method

public SecondaryLoggerSink ( ILogger logger, bool attemptDispose = false ) : System
logger ILogger
attemptDispose bool
return System