PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­Abstract­SourceIs­Enabled
Open sandboxFocus

Method IsEnabled

IsEnabled(LogLevel)

Determines whether logging is enabled for a given LogLevel for the current Role and Type.

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

A LogLevel.

Returns
Type Description
Boolean

true if logging is enabled, otherwise false.