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: 2023.0.3.0 (2023.0.3.0)
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.