Open sandboxFocus

Method ConfigureFromXml

ConfigureFromXml(LoggingBackend, XDocument, bool)

Configures a LoggingBackend from an XDocument.

Declaration
public static void ConfigureFromXml(this LoggingBackend backend, XDocument xml, bool throwing = false)
Parameters
Type Name Description
LoggingBackend backend

The backend to configure.

XDocument xml

The configuration file. The schema is described in the LoggingConfigurationModel type.

bool throwing

true if errors should be reported as exceptions, false if they should be handled without exception. The default is false. The true value is used for debugging and diagnostics.

ConfigureFromXml(LoggingBackend, XElement, bool)

Configures a LoggingBackend from an XElement.

Declaration
public static void ConfigureFromXml(this LoggingBackend backend, XElement xml, bool throwing = false)
Parameters
Type Name Description
LoggingBackend backend

The backend to configure.

XElement xml

The configuration file. The schema is described in the LoggingConfigurationModel type.

bool throwing

true if errors should be reported as exceptions, false if they should be handled without exception. The default is false. The true value is used for debugging and diagnostics.