Aliases a repository to an existing repository.
Namespace: log4net.CoreAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- repositoryAlias
- Type: System String
The repository to alias.
- repositoryTarget
- Type: log4net.Repository ILoggerRepository
The repository that the repository is aliased to.
Exceptions
Exception | Condition |
---|---|
System 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