PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Services Class / Logging­Services Properties / Logging­Services.​Default­Backend Property

LoggingServices.DefaultBackend Property

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

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public static LoggingBackend DefaultBackend { get; set; }

Property Value

Type: 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.

See Also