log4net SDK Reference

DOMConfigurator.Configure Method (Stream)

NOTE: This method is now obsolete.

Use XmlConfigurator.Configure instead of DOMConfigurator.Configure


Configures log4net using the specified configuration file.

[Visual Basic]
Overloads Public Shared Sub Configure( _
   ByVal configStream As Stream _
)
[C#]
public static void Configure(
   Stream configStream
);

Parameters

configStream
A stream to load the XML configuration from.

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 log4net configuration data.

Note that this method will NOT close the stream parameter.

See Also

DOMConfigurator Class | log4net.Config Namespace | DOMConfigurator.Configure Overload List