Configure Method

log4net SDK Reference |

# XmlConfigurator.Configure Method

Automatically configures the log4net system based on the application's configuration settings.

#### Overload List

Automatically configures the log4net system based on the application's configuration settings.

> public static void Configure();

Automatically configures the ILoggerRepository using settings stored in the application's configuration file.

> public static void Configure(ILoggerRepository);

Configures the ILoggerRepository using the specified configuration file.

> public static void Configure(ILoggerRepository,FileInfo);

Configures the ILoggerRepository using the specified configuration file.

> public static void Configure(ILoggerRepository,Stream);

Configures the ILoggerRepository using the specified configuration URI.

> public static void Configure(ILoggerRepository,Uri);

Configures the ILoggerRepository using the specified XML element.

> public static void Configure(ILoggerRepository,XmlElement);

Configures log4net using the specified configuration file.

> public static void Configure(FileInfo);

Configures log4net using the specified configuration data stream.

> public static void Configure(Stream);

Configures log4net using the specified configuration URI.

> public static void Configure(Uri);

Configures log4net using a `log4net` element

> public static void Configure(XmlElement);

#### See Also

XmlConfigurator Class | log4net.Config Namespace | Log4NetConfigurationSectionHandler