Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

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(
���AssemblysourceAssembly,
���ILoggerRepositorytargetRepository
);

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 targetRepository does not extend Hierarchy.

See Also

XmlConfiguratorAttribute Class | log4net.Config Namespace