DOMConfigurator Configure Method (ILoggerRepository, Stream)Apache log4net™ SDK Documentation
Configures the ILoggerRepository using the specified configuration file.

Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

[ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")]
public static void Configure(
	ILoggerRepository repository,
	Stream configStream
)
Remarks

DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator.

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