PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­ServicesDefault­Backend
Open sandboxFocus

LoggingServices.DefaultBackend Property

DefaultBackend

Gets or sets the default LoggingBackend used for logging in the current application.

Declaration
public static LoggingBackend DefaultBackend { get; set; }
Property Value
Type Description
LoggingBackend
Remarks

The LoggingBackend can be set individually for each role by setting the Backend property of items of the Roles collection.

Setting this property has the side effect of also setting the backend for the Meta role to a MultiplexerBackend whose first child is the new default backend and the second child is a new MetaLoggingBackend. If you need to change this behavior, you must override Roles[LoggingRoles.Meta].Backend after setting this property.