Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

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

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

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