PostSharp 5.0 / / 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 LoggingBackend used for logging in the current application.

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

Property Value

Type: LoggingBackend
Back-end can be set only once during application execution and should be set as soon as possible after application start, ideally in module initializer of the program assembly, or in the static constructor of the program class.
See Also