PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Role­Configuration Class

LoggingRoleConfiguration Class

Role-specific logging options. There is one instance of the LoggingRoleConfiguration class for each logging role. The LoggingRoleConfiguration is a run-time concept, with no build-time meaning.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.LoggingRoleConfiguration

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
public sealed class LoggingRoleConfiguration : INotifyPropertyChanged

The LoggingRoleConfiguration type exposes the following members.

Properties
  NameDescription
Public propertyBackend
Gets or sets the back-end that implements logging for the given Role.
Public propertyCustomRecordLoggingOptions
Gets the options that influence the rendering of log records emitted with the Logger class.
Public propertyIsBackendSpecified
Determines whether the Backend has been explicitly specified. This property is false by default, which means that the Backend property will evaluate to DefaultBackend.
Public propertyRole
Gets the role whose options are represented by the current object. See LoggingRoles for a list of standard logging roles.
Methods
  NameDescription
Public methodGetAbstractSource
Gets the LoggingAbstractSource for a given Type in the current role.
Events
  NameDescription
Public eventPropertyChanged
Event raised when a property of this class changes.
See Also