PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​SerilogSerilog­Logging­BackendSerilog­Logging­Backend
Open sandboxFocus

SerilogLoggingBackend Constructor

SerilogLoggingBackend(ILogger)

Initializes a new SerilogLoggingBackend and specifies the target Serilog.ILogger.

Declaration
public SerilogLoggingBackend(ILogger logger)
Parameters
Type Name Description
Serilog.ILogger logger

The Serilog.ILogger to which log records should be written, or null to use the globally-shared logger.

SerilogLoggingBackend()

Initializes a new SerilogLoggingBackend and uses the globally-shared Serilog.ILogger.

Declaration
public SerilogLoggingBackend()