PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Context­Local­Configuration Class / Logging­Context­Local­Configuration Properties / Logging­Context­Local­Configuration.​Is­Enabled Property

LoggingContextLocalConfiguration.IsEnabled Property

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.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
public bool IsEnabled { get; set; }

Property Value

Type: Boolean
See Also