Table of Contents

Class SinkExtention

Namespace
Serilog
Assembly
Arc4u.Diagnostics.Serilog.dll

Extension methods on Serilog.Configuration.LoggerSinkConfiguration for the Arc4u sinks.

public static class SinkExtention
Inheritance
SinkExtention
Inherited Members

Methods

Anonymizer(LoggerSinkConfiguration, ILogEventSink)

Writes to a sink the events without their Identity property (see AnonymizerSink).

public static LoggerConfiguration Anonymizer(this LoggerSinkConfiguration loggerConfiguration, ILogEventSink sink)

Parameters

loggerConfiguration LoggerSinkConfiguration

The sink configuration (WriteTo).

sink ILogEventSink

The sink that receives the anonymized events.

Returns

LoggerConfiguration

The logger configuration, for chaining.

CategoryFilter(LoggerSinkConfiguration, MessageCategory, ILogEventSink)

Writes to a sink only the events whose Arc4u message category is one of the given categories (see CategoryFilterSink).

public static LoggerConfiguration CategoryFilter(this LoggerSinkConfiguration loggerConfiguration, MessageCategory category, ILogEventSink sink)

Parameters

loggerConfiguration LoggerSinkConfiguration

The sink configuration (WriteTo).

category MessageCategory

The categories (flags) that are forwarded.

sink ILogEventSink

The sink that receives the matching events.

Returns

LoggerConfiguration

The logger configuration, for chaining.

Remarks

The categories are short flags: a category invented by the application ((MessageCategory)8) is filtered like the predefined ones.