LoggingConfigurationManager.ConfigureFromXml Method (LoggingBackend, XElement, Boolean) |
Configures a LoggingBackend from an XElement.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.Configuration (in PostSharp.Patterns.Diagnostics.Configuration.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public static void ConfigureFromXml( this LoggingBackend backend, XElement xml, bool throwing = false )
Parameters
- backend
- Type: PostSharp.Patterns.Diagnostics.LoggingBackend
The backend to configure. - xml
- Type: System.Xml.Linq.XElement
The configuration file. The schema is described in the LoggingConfigurationModel type. - throwing (Optional)
- Type: System.Boolean
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.