log4net SDK Documentation - Microsoft .NET Framework 4.0

XmlConfigurator.Configure Method (Stream)

Configures log4net using the specified configuration data stream.

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

Parameters

configStream
A stream to load the XML configuration from.

Remarks

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

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