PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Configuration­Manager Class / Logging­Configuration­Manager Methods / Logging­Configuration­Manager.​Configure­From­Xml Method / Logging­Configuration­Manager.​Configure­From­Xml Method (Logging­Backend, XElement, Boolean)

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.9.1.0 (6.9.1.0)
Syntax
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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type LoggingBackend. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also