XmlConfigurator Configure Method (Stream) | Apache log4net™ SDK Documentation

Configures log4net using the specified configuration data stream.

Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static ICollection Configure(
    	Stream configStream
    )

    Public Shared Function Configure (
    	configStream As Stream
    ) As ICollection

    public:
    static ICollection^ Configure(
    	Stream^ configStream
    )

    static member Configure :
            configStream : Stream -> ICollection

#### Parameters

configStream
  Type: System.IO
  Stream
  A stream to load the XML configuration from.

#### Return Value

Type: ICollection

[Missing <returns> documentation for "M:log4net.Config.XmlConfigurator.Configure(System.IO.Stream)"]

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

#### Reference

XmlConfigurator Class
Configure Overload
log4net.Config Namespace