LoggerManager GetLogger Method (String, Type) | Apache log4net™ SDK Documentation

Shorthand for GetLogger(string).

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 GetLogger(
    	string repository,
    	Type type
    )

    Public Shared Function GetLogger (
    	repository As String,
    	type As Type
    ) As ILogger

    public:
    static ILogger^ GetLogger(
    	String^ repository,
    	Type^ type
    )

    static member GetLogger :
            repository : string *
            type : Type -> ILogger

#### Parameters

repository
  Type: System
  String
  The repository to lookup in.
type
  Type: System
  Type
  The type of which the fullname will be used as the name of the logger to retrieve.

#### Return Value

Type: ILogger
The logger with the name specified.
Remarks

Gets the logger for the fully qualified name of the type specified.

See Also

#### Reference

LoggerManager Class
GetLogger Overload
log4net.Core Namespace