CompactRepositorySelectorGetRepository Method (String)Apache log4net™ SDK Documentation
Get the named ILoggerRepository

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 name of the repository to lookup

Return Value

Type: ILoggerRepository
The named ILoggerRepository

Implements

IRepositorySelectorGetRepository(String)
Exceptions

ExceptionCondition
ArgumentNullExceptionthrow if repositoryName is null
LogExceptionthrow 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

Reference