Gets the ILoggerRepository for the specified repository.
Namespace: log4net.CoreAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- repositoryName
- Type: System String
The repository to use to lookup the ILoggerRepository.
Return Value
Type: ILoggerRepositoryThe ILoggerRepository for the specified repository.
Implements
IRepositorySelector GetRepository(String)Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | repositoryName is . |
log4net.Core 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