SerilogLoggingBackend Class |
PostSharp.Patterns.Diagnostics.LoggingBackend
PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackend
PostSharp.Patterns.Diagnostics.Backends.Serilog.SerilogLoggingBackend
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)
public class SerilogLoggingBackend : TextLoggingBackend
The SerilogLoggingBackend type exposes the following members.
Name | Description | |
---|---|---|
SerilogLoggingBackend() |
Initializes a new SerilogLoggingBackend and uses the globally-shared ILogger.
| |
SerilogLoggingBackend(ILogger) |
Initializes a new SerilogLoggingBackend and specifies the target ILogger.
|
Name | Description | |
---|---|---|
CurrentContext |
Gets the current LoggingContext.
(Inherited from LoggingBackend.) | |
CurrentContextLocalConfiguration |
Gets the LoggingContextLocalConfiguration for the current execution. Returns DefaultContextLocalConfiguration
unless the context has been overwritten by WithContextLocalConfiguration(LoggingContextLocalConfiguration).
(Inherited from LoggingBackend.) | |
DefaultContextLocalConfiguration |
Gets the default LoggingContextLocalConfiguration, used unless it has been overwritten by the WithContextLocalConfiguration(LoggingContextLocalConfiguration)
for the current execution context.
(Inherited from LoggingBackend.) | |
DefaultVerbosity |
Gets the LoggingVerbosityConfiguration of the DefaultContextLocalConfiguration.
(Inherited from LoggingBackend.) | |
IsCorrupted |
Determines whether the current LoggingBackend is in a state where it can no longer be recovered. This typically happens when
an exception occurs while disabling or enabling.
(Inherited from LoggingBackend.) | |
IsDisposed |
Determines whether the current LoggingBackend has been disposed.
(Inherited from LoggingBackend.) | |
IsEnabled |
Determines whether the current LoggingBackend is currently enabled. This property has precedence
over, and does not affect, the minimal log levels set through the SetLevel(LogLevel) method.
(Inherited from LoggingBackend.) | |
Logger |
Gets the ILogger passed to the constructor of the current SerilogLoggingBackend,
or the globally-shared ILogger if no logger was passed during the instantiation of the current SerilogLoggingBackend.
| |
MessageTemplateCacheSize |
Gets the number of items in the message template cache.
| |
Options |
Gets the back-end options.
| |
TransactionPolicySelector |
Gets or sets the selector that determines what policy to apply for each transaction or whether the transaction should be logged as a transaction
at all.
(Inherited from LoggingBackend.) |