LogManager GetCurrentLoggers Method (Assembly) | Apache log4net™ SDK Documentation

Returns all the currently defined loggers in the specified assembly's repository.

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

C#
VB
C++
F#
Copy

    public static ILog[] GetCurrentLoggers(
    	Assembly repositoryAssembly
    )

    Public Shared Function GetCurrentLoggers (
    	repositoryAssembly As Assembly
    ) As ILog()

    public:
    static array<ILog^>^ GetCurrentLoggers(
    	Assembly^ repositoryAssembly
    )

    static member GetCurrentLoggers :
            repositoryAssembly : Assembly -> ILog[]

#### Parameters

repositoryAssembly
  Type: System.Reflection
  Assembly
  The assembly to use to lookup the repository.

#### Return Value

Type:
ILog
All the defined loggers.
Remarks

The root logger is not included in the returned array.
See Also

#### Reference

LogManager Class
GetCurrentLoggers Overload
log4net Namespace