Use this class to quickly configure a Hierarchy.
Inheritance Hierarchy
log4net.ConfigBasicConfigurator
Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
The BasicConfigurator type exposes the following members.
Methods
Name | Description | |
---|---|---|
Configure |
Initializes the log4net system with a default configuration.
| |
Configure(IAppender) |
Initializes the log4net system using the specified appender.
| |
Configure(IAppender) |
Initializes the log4net system using the specified appenders.
| |
Configure(ILoggerRepository) |
Initializes the ILoggerRepository with a default configuration.
| |
Configure(ILoggerRepository, IAppender) |
Initializes the ILoggerRepository using the specified appender.
| |
Configure(ILoggerRepository, IAppender) |
Initializes the ILoggerRepository using the specified appenders.
| |
Equals | (Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
ToString | (Inherited from Object.) |
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