Configure Method

log4net SDK Reference |

# DOMConfigurator.Configure Method

NOTE: This method is now obsolete.

Use XmlConfigurator.Configure instead of DOMConfigurator.Configure

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

#### Overload List

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

> public static void Configure();

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

> public static void Configure(ILoggerRepository);

Obsolete. Configures the ILoggerRepository using the specified configuration file.

> public static void Configure(ILoggerRepository,FileInfo);

Obsolete. Configures the ILoggerRepository using the specified configuration file.

> public static void Configure(ILoggerRepository,Stream);

Obsolete. Configures the ILoggerRepository using the specified XML element.

> public static void Configure(ILoggerRepository,XmlElement);

Obsolete. Configures log4net using the specified configuration file.

> public static void Configure(FileInfo);

Obsolete. Configures log4net using the specified configuration file.

> public static void Configure(Stream);

Obsolete. Configures log4net using a `log4net` element

> public static void Configure(XmlElement);

#### See Also

DOMConfigurator Class | log4net.Config Namespace