PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog Namespace / Serilog­Logging­Backend­Options Class / Serilog­Logging­Backend­Options Properties / Serilog­Logging­Backend­Options.​Semantic­Parameters­Treated­Semantically Property

SerilogLoggingBackendOptions.SemanticParametersTreatedSemantically Property

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

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Serilog (in PostSharp.Patterns.Diagnostics.Backends.Serilog.dll) Version: (
public SemanticParameterKind SemanticParametersTreatedSemantically { get; set; }

Property Value

Type: SemanticParameterKind

The value of this property it a bit mask. When a bit (i.e. a value of the SemanticParameterKind) is set to 1, a Serilog parameter will be used. Otherwise, the parameter will be expanded into plain text.

Serilog semantic parameters come at a significant cost, so they must be used with care.

The default value of this property is equal to the SemanticParametersRequiredTreatedSemantically constant.

See Also