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
Afficher le fichier Open project: serilog/serilog

Méthodes publiques

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

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Emit() public méthode

public Emit ( LogEvent logEvent ) : void
logEvent Serilog.Events.LogEvent
Résultat void

SecondaryLoggerSink() public méthode

public SecondaryLoggerSink ( ILogger logger, bool attemptDispose = false ) : System
logger ILogger
attemptDispose bool
Résultat System