log4net SDK Reference |

# XmlConfigurator.Configure Method (ILoggerRepository, Stream)

Configures the ILoggerRepository using the specified configuration file.

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

#### Parameters

repository
  The repository to configure.
configStream
  The 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 configuration data.

Note that this method will NOT close the stream parameter.

#### See Also

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