log4net SDK Reference

XmlConfiguratorAttribute.Configure Method 

Configures the ILoggerRepository for the specified assembly.

[Visual Basic]
Overrides Public Sub Configure( _
   ByVal sourceAssembly As Assembly, _
   ByVal targetRepository As ILoggerRepository _
)
[C#]
public override void Configure(
   Assembly sourceAssembly,
   ILoggerRepository targetRepository
);

Parameters

sourceAssembly
The assembly that this attribute was defined on.
targetRepository
The repository to configure.

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.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionThe repository does not extend Hierarchy.

See Also

XmlConfiguratorAttribute Class | log4net.Config Namespace