DefaultRepositorySelector GetRepository Method (String)Apache log4net™ SDK Documentation
Gets the ILoggerRepository for the specified repository.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public ILoggerRepository GetRepository(
	string repositoryName
)

Return Value

Type: ILoggerRepository
The ILoggerRepository for the specified repository.

Implements

IRepositorySelector GetRepository(String)
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullExceptionrepositoryName is  .
log4net.Core LogExceptionrepositoryName does not exist.
Remarks

Returns the named repository. If repositoryName is null a OnlineArgumentNullException is thrown. If the repository does not exist a LogException is thrown.

Use [M:CreateRepository(string, Type)] to create a repository.

See Also