PostSharp5.0//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: 5.0.55.0 (5.0.55.0)
Syntax
C#
public static LoggingBackend DefaultBackend { get; set; }

Property Value

Type: LoggingBackend
Remarks
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