log4net SDK Reference

Log4NetConfigurationSectionHandler Class

Class to register for the log4net section of the configuration file

For a list of all members of this type, see Log4NetConfigurationSectionHandler Members.

System.Object
   log4net.Config.Log4NetConfigurationSectionHandler

[Visual Basic]
Public Class Log4NetConfigurationSectionHandler
    Implements IConfigurationSectionHandler
[C#]
public class Log4NetConfigurationSectionHandler : IConfigurationSectionHandler

Thread Safety

This type is not safe for multithreaded operations.

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.

Example

Example of registering the log4net section handler :

[XML]
<configuration>
    <configSections>
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    </configSections>
    <log4net>
        log4net configuration XML goes here
    </log4net>
</configuration>

Requirements

Namespace: log4net.Config

Assembly: log4net (in log4net.dll)

See Also

Log4NetConfigurationSectionHandler Members | log4net.Config Namespace