DOMConfigurator Configure Method (ILoggerRepository, Stream) | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Configures the ILoggerRepository using the specified configuration file.

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

C#
VB
C++
F#
Copy

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

    <ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")>
    Public Shared Sub Configure (
    	repository As ILoggerRepository,
    	configStream As Stream
    )

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

    [<ObsoleteAttribute("Use XmlConfigurator.Configure instead of DOMConfigurator.Configure")>]
    static member Configure :
            repository : ILoggerRepository *
            configStream : Stream -> unit

#### Parameters

repository
  Type: log4net.Repository
  ILoggerRepository
  The repository to configure.
configStream
  Type: System.IO
  Stream
  The 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 configuration data.

Note that this method will NOT close the stream parameter.

See Also

#### Reference

DOMConfigurator Class
Configure Overload
log4net.Config Namespace