Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

Logger.IsEnabledFor�Method�

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

[Visual�Basic]
Overridable�Public�Function�IsEnabledFor( _
���ByVal level�As�Level�_
)�As�Boolean�_
����Implements�ILogger.IsEnabledFor
[C#]
public�virtual�bool�IsEnabledFor(
���Levellevel
);

Parameters

level
The level to check.

Return Value

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

Implements

ILogger.IsEnabledFor

Remarks

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

This method must not throw any exception to the caller.

See Also

Logger Class | log4net.Repository.Hierarchy Namespace