Get the named ILoggerRepository
Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax
Parameters
- repositoryName
- Type: SystemString
the name of the repository to lookup
Return Value
Type: ILoggerRepositoryThe named ILoggerRepository
Implements
IRepositorySelectorGetRepository(String)Exceptions
Exception | Condition |
---|---|
ArgumentNullException | throw if repositoryName is null |
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