Assembly: log4net (in log4net.dll) Version: 126.96.36.199-.NET 4.0
public static ILogger GetLogger( Assembly repositoryAssembly, string name )
Public Shared Function GetLogger ( repositoryAssembly As Assembly, name As String ) As ILogger
public: static ILogger^ GetLogger( Assembly^ repositoryAssembly, String^ name )
static member GetLogger : repositoryAssembly : Assembly * name : string -> ILogger
- Type: System.ReflectionAssembly
The assembly to use to lookup the repository.
- Type: SystemString
The name of the logger to retrieve.
Return ValueType: ILogger
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.