DefaultRepositorySelectorAliasRepository Method Apache log4net™ SDK Documentation
Aliases a repository to an existing repository.

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

public void AliasRepository(
	string repositoryAlias,
	ILoggerRepository repositoryTarget
)

Parameters

repositoryAlias
Type: SystemString
The repository to alias.
repositoryTarget
Type: log4net.RepositoryILoggerRepository
The repository that the repository is aliased to.
Exceptions

ExceptionCondition
ArgumentNullException

repositoryAlias is .

-or-

repositoryTarget is .

Remarks

The repository specified will be aliased to the repository when created. The repository must not already exist.

When the repository is created it must utilize the same repository type as the repository it is aliased to, otherwise the aliasing will fail.

See Also

Reference