| LoggerIsEnabled Method |
Gets a value indicating whether logging is enabled for the specified level.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public bool IsEnabled(
LogLevel level
)
Public Function IsEnabled (
level As LogLevel
) As Boolean
Dim instance As Logger
Dim level As LogLevel
Dim returnValue As Boolean
returnValue = instance.IsEnabled(level)
abstract IsEnabled :
level : LogLevel -> bool
override IsEnabled :
level : LogLevel -> bool
Parameters
- level
- Type: NLogLogLevel
Log level to be checked.
Return Value
Type:
BooleanA value of
if logging is enabled for the specified level, otherwise it returns
.
Implements
ILoggerBase.IsEnabled(LogLevel)See Also