Automatically configures the
ILoggerRepository using settings
stored in the application's configuration file.
Namespace: log4net.ConfigAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
[ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
public static void Configure(
ILoggerRepository repository
)
[ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
public static void Configure(
ILoggerRepository repository
)
<ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")>
Public Shared Sub Configure (
repository As ILoggerRepository
)
<ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")>
Public Shared Sub Configure (
repository As ILoggerRepository
)
public:
[ObsoleteAttribute(L"Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
static void Configure(
ILoggerRepository^ repository
)
public:
[ObsoleteAttribute(L"Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
static void Configure(
ILoggerRepository^ repository
)
DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator.
Each application has a configuration file. This has the
same name as the application with '.config' appended.
This file is XML and calling this function prompts the
configurator to look in that file for a section called
log4net that contains the configuration data.