PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­ProfileAllow­Dynamic­Enabling
Open sandboxFocus

LoggingProfile.AllowDynamicEnabling Property

AllowDynamicEnabling

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.

Declaration
public bool AllowDynamicEnabling { get; set; }
Property Value
Type Description
Boolean