ILogger IsEnabledFor Method | Apache log4net™ SDK Documentation

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

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    bool IsEnabledFor(
    	Level level
    )

    Function IsEnabledFor (
    	level As Level
    ) As Boolean

    bool IsEnabledFor(
    	Level^ level
    )

    abstract IsEnabledFor :
            level : Level -> bool

#### Parameters

level
  Type: log4net.Core
  Level
  The level to check.

#### Return Value

Type: Boolean
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

#### Reference

ILogger Interface
log4net.Core Namespace