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

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public ILoggerRepository GetRepository(
	string repositoryName
)

Parameters

repositoryName
Type: SystemString
The repository to use to lookup the ILoggerRepository.

Return Value

Type: ILoggerRepository
The ILoggerRepository for the specified repository.

Implements

IRepositorySelectorGetRepository(String)
Exceptions

ExceptionCondition
ArgumentNullExceptionrepositoryName is .
LogExceptionrepositoryName 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

Reference