Table of Contents

Namespace Serilog.Core

Classes

Constants

Constants used in the core logging pipeline and associated types.

Logger

The core Serilog logging pipeline. A Logger must be disposed to flush any events buffered within it. Most application code should depend on ILogger, not this class.

LoggingLevelSwitch

Dynamically controls logging level.

LoggingLevelSwitchChangedEventArgs

Event arguments for MinimumLevelChanged event.

MessageTemplateFormatMethodAttribute

Indicates that the marked method logs data using a message template and (optional) arguments. The name of the parameter which contains the message template should be given in the constructor.

Interfaces

IBatchedLogEventSink

A destination that accepts events in batches. Many sinks gain a performance advantage by handling events in batches, for example to combine multiple events into a single network request to a remote collector. Because the client application cannot wait for every event to be flushed when batching is used, batched sinks normally work asynchronously to conserve local resources while batches are sent.

IDestructuringPolicy

Determine how, when destructuring, a supplied value is represented as a complex log event property.

ILogEventEnricher

Applied during logging to add additional information to log events.

ILogEventFilter

Provides filtering of the log event stream.

ILogEventPropertyFactory

Creates log event properties from regular .NET objects, applying policies as required.

ILogEventPropertyValueFactory

Supports the policy-driven construction of LogEventPropertyValues given regular .NET objects.

ILogEventSink

A destination for log events.