Open sandboxFocus

Class SerilogLoggingBackendOptions

Options for SerilogLoggingBackend.

Inheritance
SerilogLoggingBackendOptions
Namespace: PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly: PostSharp.Patterns.Diagnostics.Backends.Serilog.dll
Syntax
public class SerilogLoggingBackendOptions : TextLoggingBackendOptions

Constructors

Name Description
SerilogLoggingBackendOptions()

Initializes a new SerilogLoggingBackendOptions.

Fields

Name Description
SemanticParametersRequiredTreatedSemantically

Kinds of semantic parameters that are required to be mapped to Serilog parameters. This is the default value of the SemanticParametersTreatedSemantically property. This constant is set to ParameterValue | Exception | ReturnValue | ReturnItemValue | ExecutionTime | This.

Properties

Name Description
GetLogger

Function mapping a SerilogLoggingTypeSource to a Serilog ILogger. The default behavior is to call typeSource.Backend.Logger.ForContext( typeSource.SourceType ).

IncludedSpecialProperties

Gets or sets the special properties that should be added to the list of event properties.

LogEventEnricher

Gets or sets a delegate to a method that can add properties to or remove properties from the Serilog.Events.LogEvent immediately before it will be written to Serilog.

SemanticParametersTreatedSemantically

Gets or sets the kinds of semantic parameters that must be mapped to Serilog semantic parameters.

UseSerilogFormatters

Determines whether Serilog formatters should be used instead of PostSharp formatters. The default value is false.