Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LoggerRepositorySkeleton.GetLogger�Method�

Return a new logger instance

[Visual�Basic]
MustOverride�Public�Function�GetLogger( _
���ByVal name�As�String�_
)�As�ILogger�_
����Implements�ILoggerRepository.GetLogger
[C#]
public�abstract�ILogger�GetLogger(
���stringname
);

Parameters

name
The name of the logger to retrieve

Return Value

The logger object with the name specified

Implements

ILoggerRepository.GetLogger

Remarks

Return a new 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

LoggerRepositorySkeleton Class | log4net.Repository Namespace