PostSharp 6.10 / / Post­Sharp Documentation / 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: (
public bool AllowDynamicEnabling { get; set; }

Property Value

Type: Boolean
See Also