Assembly: log4net (in log4net.dll) Version: 22.214.171.124-.NET 4.0
public static ICollection Configure( ILoggerRepository repository )
Public Shared Function Configure ( repository As ILoggerRepository ) As ICollection
public: static ICollection^ Configure( ILoggerRepository^ repository )
static member Configure : repository : ILoggerRepository -> ICollection
- Type: log4net.RepositoryILoggerRepository
The repository to configure.
Return ValueType: ICollection
[Missing <returns> documentation for "M:log4net.Config.XmlConfigurator.Configure(log4net.Repository.ILoggerRepository)"]
Each application has a configuration file. This has the same name as the application with '.config' appended. This file is XML and calling this function prompts the configurator to look in that file for a section called log4net that contains the configuration data.
To use this method to configure log4net you must specify the Log4NetConfigurationSectionHandler section handler for the log4net configuration section. See the Log4NetConfigurationSectionHandler for an example.