Log4NetConfigurationSectionHandler ClassApache log4net™ SDK Documentation
Class to register for the log4net section of the configuration file
Inheritance Hierarchy

SystemObject
  log4net.ConfigLog4NetConfigurationSectionHandler

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

public class Log4NetConfigurationSectionHandler : IConfigurationSectionHandler

The Log4NetConfigurationSectionHandler type exposes the following members.

Constructors

  NameDescription
Public methodLog4NetConfigurationSectionHandler
Initializes a new instance of the Log4NetConfigurationSectionHandler class.
Top
Methods

  NameDescription
Public methodCreate
Parses the configuration section.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

The log4net section of the configuration file needs to have a section handler registered. This is the section handler used. It simply returns the XML element that is the root of the section.
Examples

Example of registering the log4net section handler :
<configuration><configSections><section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /></configSections><log4net>
                log4net configuration XML goes here
              </log4net></configuration>
See Also

Reference