Configures the ILoggerRepository using the specified configuration
file.
Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
public static ICollection Configure( ILoggerRepository repository, Stream configStream )
Parameters
- repository
- Type: log4net.Repository.ILoggerRepository
The repository to configure. - configStream
- Type: System.IO.Stream
The stream to load the XML configuration from.
Return Value
Type: ICollection[Missing <returns> documentation for "M:log4net.Config.XmlConfigurator.Configure(log4net.Repository.ILoggerRepository,System.IO.Stream)"]
Remarks
The configuration data must be valid XML. It must contain at least one element called log4net that holds the configuration data.
Note that this method will NOT close the stream parameter.
See Also