Assembly: log4net (in log4net.dll) Version: 22.214.171.124-.NET 4.0
public static ILog GetLogger( string name )
Public Shared Function GetLogger ( name As String ) As ILog
public: static ILog^ GetLogger( String^ name )
static member GetLogger : name : string -> ILog
- Type: SystemString
The name of the logger to retrieve.
Return ValueType: ILog
The logger with the name specified.
Retrieves a logger named as the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.
By default, loggers do not have a set level but inherit it from the hierarchy. This is one of the central features of log4net.