PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLoggerIs­Enabled
Open sandboxFocus

Logger.IsEnabled Method

IsEnabled(LogLevel)

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

Declaration
public bool IsEnabled(LogLevel level)
Parameters
Type Name Description
LogLevel level

A LogLevel.

Returns
Type Description
System.Boolean

true if logging is enabled for level, otherwise false.