XmlConfiguratorAttributeConfigure Method Apache log4net™ SDK Documentation
Configures the ILoggerRepository for the specified assembly.

Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 2.0.8.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

ExceptionCondition
ArgumentOutOfRangeExceptionThe 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

Reference