DOMConfigurator Configure Method | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Automatically configures the log4net system based on the application's configuration settings.

Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    [ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
    public static void Configure()

    <ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")>
    Public Shared Sub Configure

    public:
    [ObsoleteAttribute(L"Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
    static void Configure()

    [<ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")>]
    static member Configure : unit -> unit

Remarks

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.
See Also

#### Reference

DOMConfigurator Class
Configure Overload
log4net.Config Namespace