PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logger Class / Logger Methods / Logger.​Is­Enabled Method

Logger.IsEnabled Method

Determines whether logging is enabled in the current Logger for a given LogLevel.

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

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
A LogLevel.

Return Value

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