LogManager GetRepository Method | Apache log4net™ SDK Documentation

Returns the default ILoggerRepository instance.

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

C#
VB
C++
F#
Copy

    public static ILoggerRepository GetRepository()

    Public Shared Function GetRepository As ILoggerRepository

    public:
    static ILoggerRepository^ GetRepository()

    static member GetRepository : unit -> ILoggerRepository

#### Return Value

Type: ILoggerRepository
The ILoggerRepository instance for the default repository.
Remarks

Gets the ILoggerRepository for the repository specified by the callers assembly ([M:Assembly.GetCallingAssembly()]).

See Also

#### Reference

LogManager Class
GetRepository Overload
log4net Namespace