Hierarchy GetCurrentLoggers Method | Apache log4net™ SDK Documentation

Returns all the currently defined loggers in the hierarchy as an Array

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

C#
VB
C++
F#
Copy

    public override ILogger[] GetCurrentLoggers()

    Public Overrides Function GetCurrentLoggers As ILogger()

    public:
    virtual array<ILogger^>^ GetCurrentLoggers() override

    abstract GetCurrentLoggers : unit -> ILogger[]
    override GetCurrentLoggers : unit -> ILogger[]

#### Return Value

Type:
ILogger
All the defined loggers

#### Implements

ILoggerRepository
GetCurrentLoggers
Remarks

Returns all the currently defined loggers in the hierarchy as an Array. The root logger is not included in the returned enumeration.

See Also

#### Reference

Hierarchy Class
log4net.Repository.Hierarchy Namespace