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