PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog Namespace / Serilog­Logging­Backend Class / Serilog­Logging­Backend Constructor / Serilog­Logging­Backend Constructor (ILogger)

SerilogLoggingBackend Constructor (ILogger)

Initializes a new SerilogLoggingBackend and specifies the target ILogger.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Serilog (in PostSharp.Patterns.Diagnostics.Backends.Serilog.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public SerilogLoggingBackend(
	ILogger logger
)

Parameters

logger
Type: ILogger
The ILogger to which log records should be written, or null to use the globally-shared logger.
See Also