Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 188.8.131.52 (184.108.40.206)
public class LoggingContextLocalConfiguration
Thetype exposes the following members.
Initializes a new.
Determines whether logging is enabled for all contexts using this configuration. This is typically used to disable logging for the current transaction. If it is disabled, the default configuration is used.
Determines whether the currentis read-only. A is frozen when it's assigned to a caching backend.
Gets the configuration of the minimal LogLevel that's still being logged for the current .
Returns a shallow copy of the current instance, sharing the same value of the Verbosity property.
Prevents changes in the current instance. This method is called when the WithContextLocalConfiguration(LoggingContextLocalConfiguration) method.is passed to the
User code can switch from one WithContextLocalConfiguration(LoggingContextLocalConfiguration) method. The current instance is exposed by the CurrentContextLocalConfiguration property. The default instance is exposed by the DefaultContextLocalConfiguration.to another for the current context using the
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.