LogManager GetLoggerRepository Method | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

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

    [ObsoleteAttribute("Use GetRepository instead of GetLoggerRepository")]
    public static ILoggerRepository GetLoggerRepository()

    <ObsoleteAttribute("Use GetRepository instead of GetLoggerRepository")>
    Public Shared Function GetLoggerRepository As ILoggerRepository

    public:
    [ObsoleteAttribute(L"Use GetRepository instead of GetLoggerRepository")]
    static ILoggerRepository^ GetLoggerRepository()

    [<ObsoleteAttribute("Use GetRepository instead of GetLoggerRepository")>]
    static member GetLoggerRepository : 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
GetLoggerRepository Overload
log4net Namespace