LoggingContextLocalConfiguration Class |

Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.8.6.0 (6.8.6.0)

public class LoggingContextLocalConfiguration
The LoggingContextLocalConfiguration type exposes the following members.

Name | Description | |
---|---|---|
![]() | LoggingContextLocalConfiguration |
Initializes a new LoggingContextLocalConfiguration.
|

Name | Description | |
---|---|---|
![]() | IsReadOnly |
Determines whether the current LoggingContextLocalConfiguration is read-only. A LoggingContextLocalConfiguration is frozen when it's assigned to a caching backend.
|
![]() | Verbosity |
Gets the configuration of the minimal LogLevel that's still being logged for the current LoggingContextLocalConfiguration.
|

Name | Description | |
---|---|---|
![]() | Clone |
Returns a shallow copy of the current instance, sharing the same value of the Verbosity property.
|
![]() | Freeze |
Prevents changes in the current instance. This method is called when the LoggingContextLocalConfiguration is passed to the WithContextLocalConfiguration(LoggingContextLocalConfiguration) method.
|

User code can switch from one LoggingContextLocalConfiguration to another for the current context using the WithContextLocalConfiguration(LoggingContextLocalConfiguration) method. The current instance is exposed by the CurrentContextLocalConfiguration property. The default instance is exposed by the DefaultContextLocalConfiguration.
Unlike LoggingVerbosityConfiguration, this class is lightweight and can be allocated at high frequency. However, it is recommended that only a few instances of the LoggingVerbosityConfiguration class are created.
