Class AnonymizerSink
- Namespace
- Arc4u.Diagnostics.Sinks
- Assembly
- Arc4u.Diagnostics.Serilog.dll
A sink that removes the Identity property from the events before forwarding them to another sink.
public class AnonymizerSink : ILogEventSink, IDisposable
- Inheritance
-
AnonymizerSink
- Implements
-
ILogEventSink
- Inherited Members
Constructors
AnonymizerSink(ILogEventSink)
Initializes a new instance of the AnonymizerSink class.
public AnonymizerSink(ILogEventSink sink)
Parameters
sinkILogEventSinkThe sink that receives the anonymized events.
Properties
Sink
Gets or sets the sink that receives the anonymized events.
public ILogEventSink Sink { get; set; }
Property Value
- ILogEventSink
Methods
Dispose()
Disposes the wrapped sink when it is disposable.
public void Dispose()
Emit(LogEvent)
Forwards the event to the wrapped sink, without its Identity property.
public void Emit(LogEvent logEvent)
Parameters
logEventLogEventThe event to emit.