Method ConfigureFromXml
ConfigureFromXml(LoggingBackend, XDocument, Boolean)
Configures a LoggingBackend from an XDocument.
Declaration
public static void ConfigureFromXml([Required] this LoggingBackend backend, [Required] 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. |
Boolean | throwing |
|
ConfigureFromXml(LoggingBackend, XElement, Boolean)
Configures a LoggingBackend from an XElement.
Declaration
public static void ConfigureFromXml([Required] this LoggingBackend backend, [Required] 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. |
Boolean | throwing |
|