Gets the ILoggerRepository for the specified repository.
Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
Parameters
- repositoryName
- Type: SystemString
The repository to use to lookup the ILoggerRepository.
Return Value
Type: ILoggerRepositoryThe ILoggerRepository for the specified repository.
Implements
IRepositorySelectorGetRepository(String)Exceptions
Exception | Condition |
---|---|
ArgumentNullException | repositoryName is . |
LogException | repositoryName does not exist. |
Remarks
Returns the named repository. If repositoryName is null a ArgumentNullException is thrown. If the repository does not exist a LogException is thrown.
Use [M:CreateRepository(string, Type)] to create a repository.
See Also