XmlConfigurator Configure Method (ILoggerRepository, Uri) | Apache log4net™ SDK Documentation

Configures the ILoggerRepository using the specified configuration URI.

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(
    	ILoggerRepository repository,
    	Uri configUri
    )

    Public Shared Function Configure (
    	repository As ILoggerRepository,
    	configUri As Uri
    ) As ICollection

    public:
    static ICollection^ Configure(
    	ILoggerRepository^ repository,
    	Uri^ configUri
    )

    static member Configure :
            repository : ILoggerRepository *
            configUri : Uri -> ICollection

#### Parameters

repository
  Type: log4net.Repository
  ILoggerRepository
  The repository to configure.
configUri
  Type: System
  Uri
  A URI to load the XML configuration from.

#### Return Value

Type: ICollection

[Missing <returns> documentation for "M:log4net.Config.XmlConfigurator.Configure(log4net.Repository.ILoggerRepository,System.Uri)"]

Remarks

The configuration data must be valid XML. It must contain at least one element called log4net that holds the configuration data.

The WebRequest must support the URI scheme specified.

See Also

#### Reference

XmlConfigurator Class
Configure Overload
log4net.Config Namespace