Return a new logger instance named as the first parameter using factory.
Assembly: log4net (in log4net.dll) Version: 126.96.36.199-.NET 4.0
public Logger GetLogger( string name, ILoggerFactory factory )
Public Function GetLogger ( name As String, factory As ILoggerFactory ) As Logger
public: Logger^ GetLogger( String^ name, ILoggerFactory^ factory )
member GetLogger : name : string * factory : ILoggerFactory -> Logger
- Type: SystemString
The name of the logger to retrieve
- Type: log4net.Repository.HierarchyILoggerFactory
The factory that will make the new logger instance
Return ValueType: Logger
The logger object with the name specified
If a logger of that name already exists, then it will be returned. Otherwise, a new logger will be instantiated by the factory parameter and linked with its existing ancestors as well as children.