Hierarchy IsDisabled Method | Apache log4net™ SDK Documentation

Test if this hierarchy is disabled for the specified Level.

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

C#
VB
C++
F#
Copy

    public bool IsDisabled(
    	Level level
    )

    Public Function IsDisabled (
    	level As Level
    ) As Boolean

    public:
    bool IsDisabled(
    	Level^ level
    )

    member IsDisabled :
            level : Level -> bool

#### Parameters

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

#### Return Value

Type: Boolean
true if the repository is disabled for the level argument, false otherwise.
Remarks

If this hierarchy has not been configured then this method will always return true.

This method will return true if this repository is disabled for level object passed as parameter and false otherwise.

See also the Threshold property.

See Also

#### Reference

Hierarchy Class
log4net.Repository.Hierarchy Namespace