PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Profile Class/Logging­Profile Properties/Logging­Profile.​Allow­Dynamic­Enabling Property

LoggingProfile.AllowDynamicEnabling Property

Determines whether logging can be dynamically enabled or disabled after initialization. The default value of this property is true. When it is set to false, PostSharp generates code that allows the JIT compiler to completely remove logging instructions for types that are not enabled.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public bool AllowDynamicEnabling { get; set; }

Property Value

Type: Boolean
See Also