log4net SDK Reference

ILogger.IsEnabledFor Method 

Checks if this logger is enabled for a given Level passed as parameter.

[Visual Basic]
Function IsEnabledFor( _
   ByVal level As Level _
) As Boolean
[C#]
bool IsEnabledFor(
   Level level
);

Parameters

level
The level to check.

Return Value

true if this logger is enabled for level, otherwise false.

Remarks

Test if this logger is going to log events of the specified level.

See Also

ILogger Interface | log4net.Core Namespace