Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

ILoggerRepository.GetLogger�Method�

Returns a named logger instance

[Visual�Basic]
Function�GetLogger( _
���ByVal name�As�String�_
)�As�ILogger
[C#]
ILogger�GetLogger(
���stringname
);

Parameters

name
The name of the logger to retrieve

Return Value

The logger object with the name specified

Remarks

Returns a named logger instance.

If a logger of that name already exists, then it will be returned. Otherwise, a new logger will be instantiated and then linked with its existing ancestors as well as children.

See Also

ILoggerRepository Interface | log4net.Repository Namespace