log4net SDK Reference

BasicConfigurator Class

Use this class to quickly configure a Hierarchy.

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

System.Object
   log4net.Config.BasicConfigurator

[Visual Basic]
NotInheritable Public Class BasicConfigurator
[C#]
public sealed class BasicConfigurator

Thread Safety

This type is not safe for multithreaded operations.

Remarks

Allows very simple programmatic configuration of log4net.

Only one appender can be configured using this configurator. The appender is set at the root of the hierarchy and all logging events will be delivered to that appender.

Appenders can also implement the IOptionHandler interface. Therefore they would require that the ActivateOptions method be called after the appenders properties have been configured.

Requirements

Namespace: log4net.Config

Assembly: log4net (in log4net.dll)

See Also

BasicConfigurator Members | log4net.Config Namespace