PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace/IContext­Local­Logger Interface/IContext­Local­Logger Methods/IContext­Local­Logger.​Is­Enabled Method

IContextLocalLogger.IsEnabled Method

Determines whether logging is enabled for a given LogLevel.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
bool IsEnabled(
	LogLevel level
)

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
A record level (or severity).

Return Value

Type: Boolean
true if logging is enabled for level, otherwise false.
See Also