SerilogSinkConfigurationExtensions.PostSharp Method |
Returns the same configuration, except with the Serilog-to-PostSharp sink as an additional sink.
Namespace: PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly: PostSharp.Patterns.Diagnostics.Backends.Serilog (in PostSharp.Patterns.Diagnostics.Backends.Serilog.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public static LoggerConfiguration PostSharp( this LoggerSinkConfiguration sinkConfiguration, string defaultLogSourceName = null, SerilogParameterHandling parameterHandling = SerilogParameterHandling.Default )
Parameters
- sinkConfiguration
- Type: LoggerSinkConfiguration
The configuration the sink should be added to. - defaultLogSourceName (Optional)
- Type: System.String
Log source name that will be passed to the PostSharp backend for loggers where ForContext(Type) is not used. Optional. - parameterHandling (Optional)
- Type: PostSharp.Patterns.Diagnostics.Backends.Serilog.SerilogParameterHandling
Determines how should Serilog parameters in Serilog messages be passed to PostSharp logging.