Configures the ILoggerRepository for the specified assembly.
Namespace: log4net.ConfigAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- sourceAssembly
- Type: System.Reflection Assembly
The assembly that this attribute was defined on.
- targetRepository
- Type: log4net.Repository ILoggerRepository
The repository to configure.
Exceptions
Exception | Condition |
---|---|
System 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