Open sandboxFocus

Class LoggingRoleConfiguration

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
LoggingRoleConfiguration
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public sealed class LoggingRoleConfiguration : INotifyPropertyChanged, ILoggerFactory3, ILoggerFactory2

Properties

Name Description
Backend

Gets or sets the back-end that implements logging for the given Role.

CustomRecordLoggingOptions

Gets the options that influence the rendering of log records emitted with the Logger class.

IsBackendSpecified

Determines whether the Backend has been explicitly specified. This property is false by default, which means that the Backend property will evaluate to DefaultBackend.

Role

Gets the role whose options are represented by the current object. See LoggingRoles for a list of standard logging roles.

Methods

Name Description
GetAbstractSource(Type)

Gets the LoggingAbstractSource for a given Type in the current role.

Events

Name Description
PropertyChanged

Event raised when a property of this class changes.