LoggingBackend Class |
PostSharp.Patterns.Diagnostics.LoggingBackend
PostSharp.Patterns.Diagnostics.Backends.Null.NullLoggingBackend
PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackend
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.21.0 (6.5.21.0)
public abstract class LoggingBackend : IDisposable
The LoggingBackend type exposes the following members.
Name | Description | |
---|---|---|
LoggingBackend |
Initializes a new LoggingBackend.
|
Name | Description | |
---|---|---|
CurrentContext |
Gets the current LoggingContext.
| |
CurrentContextLocalConfiguration |
Gets the LoggingContextLocalConfiguration for the current execution. Returns DefaultContextLocalConfiguration
unless the context has been overwritten by WithContextLocalConfiguration(LoggingContextLocalConfiguration).
| |
DefaultContextLocalConfiguration |
Gets the default LoggingContextLocalConfiguration, used unless it has been overwritten by the WithContextLocalConfiguration(LoggingContextLocalConfiguration)
for the current execution context.
| |
DefaultVerbosity |
Gets the LoggingVerbosityConfiguration of the DefaultContextLocalConfiguration.
| |
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.
| |
IsDisposed |
Determines whether the current LoggingBackend has been disposed.
| |
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.
| |
Options |
Gets the formatting and rendering options for the current LoggingBackend.
|
If you want to implement your own logging back-end, deriving from the TextLoggingBackend class, which implements standard logic for logging a text.