log4net SDK Reference

LogManager.GetLogger Method (String, Type)

Shorthand for GetLogger.

[Visual Basic]
Overloads Public Shared Function GetLogger( _
   ByVal repository As String, _
   ByVal type As Type _
) As ILog
[C#]
public static ILog GetLogger(
   string repository,
   Type type
);

Parameters

repository
The repository to lookup in.
type
The full name of type will be used as the name of the logger to retrieve.

Return Value

The logger with the name specified.

Remarks

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

See Also

LogManager Class | log4net Namespace | LogManager.GetLogger Overload List