Hierarchy GetAppenders Method | Apache log4net™ SDK Documentation

Returns all the Appenders that are currently configured

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 IAppender[] GetAppenders()

    Public Overrides Function GetAppenders As IAppender()

    public:
    virtual array<IAppender^>^ GetAppenders() override

    abstract GetAppenders : unit -> IAppender[]
    override GetAppenders : unit -> IAppender[]

#### Return Value

Type:
IAppender
An array containing all the currently configured appenders

#### Implements

ILoggerRepository
GetAppenders
Remarks

Returns all the IAppender instances that are currently configured. All the loggers are searched for appenders. The appenders may also be containers for appenders and these are also searched for additional loggers.

The list returned is unordered but does not contain duplicates.

See Also

#### Reference

Hierarchy Class
log4net.Repository.Hierarchy Namespace