Get the named ILoggerRepository
Namespace: log4net.CoreAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- repositoryName
- Type: System String
the name of the repository to lookup
Return Value
Type: ILoggerRepositoryThe named ILoggerRepository
Implements
IRepositorySelector GetRepository(String)Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | throw if repositoryName is null |
log4net.Core LogException | throw if the repositoryName does not exist |
Remarks
Get the named ILoggerRepository. The default repository is log4net-default-repository. Other repositories must be created using the [M:CreateRepository(string, Type)]. If the named repository does not exist an exception is thrown.
See Also