log4net SDK Reference |

# DOMConfigurator.Configure Method (ILoggerRepository, XmlElement)

NOTE: This method is now obsolete.

Use XmlConfigurator.Configure instead of DOMConfigurator.Configure

Configures the ILoggerRepository using the specified XML element.

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

#### Parameters

repository
  The repository to configure.
element
  The element to parse.

#### Remarks

DOMConfigurator is obsolete. Use XmlConfigurator instead of DOMConfigurator.

Loads the log4net configuration from the XML element supplied as element.

#### See Also

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