BasicConfigurator ClassApache log4net™ SDK Documentation
Use this class to quickly configure a Hierarchy.
Inheritance Hierarchy

SystemObject
  log4net.ConfigBasicConfigurator

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

public sealed class BasicConfigurator

The BasicConfigurator type exposes the following members.

Methods

  NameDescription
Public methodStatic memberConfigure
Initializes the log4net system with a default configuration.
Public methodStatic memberConfigure(IAppender)
Initializes the log4net system using the specified appender.
Public methodStatic memberConfigure(IAppender)
Initializes the log4net system using the specified appenders.
Public methodStatic memberConfigure(ILoggerRepository)
Initializes the ILoggerRepository with a default configuration.
Public methodStatic memberConfigure(ILoggerRepository, IAppender)
Initializes the ILoggerRepository using the specified appender.
Public methodStatic memberConfigure(ILoggerRepository, IAppender)
Initializes the ILoggerRepository using the specified appenders.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(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.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
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 [M:log4net.Core.IOptionHandler.ActivateOptions()] method be called after the appenders properties have been configured.

See Also

Reference