XmlConfigurator Class | Apache log4net™ SDK Documentation

Use this class to initialize the log4net environment using an Xml tree.
Inheritance Hierarchy

System
Object
log4net.Config
XmlConfigurator

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

C#
VB
C++
F#
Copy

    public sealed class XmlConfigurator

    Public NotInheritable Class XmlConfigurator

    public ref class XmlConfigurator sealed

    [<SealedAttribute>]
    type XmlConfigurator =  class end

The XmlConfigurator type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| Configure | Automatically configures the log4net system based on the application's configuration settings.
| Configure(FileInfo) | Configures log4net using the specified configuration file.
| Configure(Stream) | Configures log4net using the specified configuration data stream.
| Configure(Uri) | Configures log4net using the specified configuration URI.
| Configure(XmlElement) | Configures log4net using a log4net element
| Configure(ILoggerRepository) | Automatically configures the ILoggerRepository using settings stored in the application's configuration file.
| Configure(ILoggerRepository, FileInfo) | Configures the ILoggerRepository using the specified configuration file.
| Configure(ILoggerRepository, Stream) | Configures the ILoggerRepository using the specified configuration file.
| Configure(ILoggerRepository, Uri) | Configures the ILoggerRepository using the specified configuration URI.
| Configure(ILoggerRepository, XmlElement) | Configures the ILoggerRepository using the specified XML element.
| ConfigureAndWatch(FileInfo) | Configures log4net using the file specified, monitors the file for changes and reloads the configuration if a change is detected.
| ConfigureAndWatch(ILoggerRepository, FileInfo) | Configures the ILoggerRepository using the file specified, monitors the file for changes and reloads the configuration if a change is detected.
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

Configures a ILoggerRepository using an Xml tree.

See Also

#### Reference

log4net.Config Namespace