LoggerManager GetCurrentLoggers Method (String) | Apache log4net™ SDK Documentation

Returns all the currently defined loggers in the specified repository.

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

C#
VB
C++
F#
Copy

    public static ILogger[] GetCurrentLoggers(
    	string repository
    )

    Public Shared Function GetCurrentLoggers (
    	repository As String
    ) As ILogger()

    public:
    static array<ILogger^>^ GetCurrentLoggers(
    	String^ repository
    )

    static member GetCurrentLoggers :
            repository : string -> ILogger[]

#### Parameters

repository
  Type: System
  String
  The repository to lookup in.

#### Return Value

Type:
ILogger
All the defined loggers.
Remarks

The root logger is not included in the returned array.

See Also

#### Reference

LoggerManager Class
GetCurrentLoggers Overload
log4net.Core Namespace