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
bool

true if logging is enabled, otherwise false.

Remarks

If an exception occurs in the logic of this method, the method reports the exception to the ExceptionHandler and returns false.