Configures the ILoggerRepository for the specified assembly.
Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
public override void Configure( Assembly sourceAssembly, ILoggerRepository targetRepository )
Parameters
- sourceAssembly
- Type: System.ReflectionAssembly
The assembly that this attribute was defined on. - targetRepository
- Type: log4net.RepositoryILoggerRepository
The repository to configure.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The targetRepository does not extend Hierarchy. |
Remarks
Configure the repository using the XmlConfigurator. The targetRepository specified must extend the Hierarchy class otherwise the XmlConfigurator will not be able to configure it.
See Also