Logger EffectiveLevel Property | Apache log4net™ SDK Documentation

Gets the effective level for this logger.

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

C#
VB
C++
F#
Copy

    public virtual Level EffectiveLevel { get; }

    Public Overridable ReadOnly Property EffectiveLevel As Level
    	Get

    public:
    virtual property Level^ EffectiveLevel {
    	Level^ get ();
    }

    abstract EffectiveLevel : Level with get
    override EffectiveLevel : Level with get

#### Return Value

Type: Level
The nearest level in the logger hierarchy.
Remarks

Starting from this logger, searches the logger hierarchy for a non-null level and returns it. Otherwise, returns the level of the root logger.

The Logger class is designed so that this method executes as quickly as possible.

See Also

#### Reference

Logger Class
log4net.Repository.Hierarchy Namespace