log4net SDK Reference |

# 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(
Level level
);

#### 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