log4net SDK Reference

Hierarchy.GetLogger Method (String)

Return a new logger instance named as the first parameter using the default factory.

[Visual Basic]
Overrides Overloads Public Function GetLogger( _
   ByVal name As String _
) As ILogger _
    Implements ILoggerRepository.GetLogger
[C#]
public override ILogger GetLogger(
   string name
);

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 named as the first parameter using the default factory.

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

Hierarchy Class | log4net.Repository.Hierarchy Namespace | Hierarchy.GetLogger Overload List