log4net SDK Reference |

# XmlConfigurator.Configure Method (ILoggerRepository, Uri)

Configures the ILoggerRepository using the specified configuration URI.

[Visual Basic]
Overloads Public Shared Sub Configure( _
ByVal repository As ILoggerRepository, _
ByVal configUri As Uri _
)
[C#]
public static void Configure(
ILoggerRepository repository,
Uri configUri
);

#### Parameters

repository
  The repository to configure.
configUri
  A URI 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 configuration data.

The WebRequest must support the URI scheme specified.

#### See Also

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