NLog Logging Library

Logger.IsEnabled Method 

[This is preliminary documentation and subject to change.]

Determines if logging is enabled for the specified level.

[Visual Basic]
Public Function IsEnabled( _
   ByVal level As LogLevel _
) As Boolean
[C#]
public bool IsEnabled(
   LogLevel level
);

Parameters

level
level to be checked

Return Value

true if logging is enabled for the specified level, otherwise it returns false.

See Also

Logger Class | NLog Namespace