PostSharp 6.7 / / Post­Sharp Documentation / 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

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: (
public sealed class LoggingRoleConfiguration : INotifyPropertyChanged, 
	ILoggerFactory3, ILoggerFactory2

The LoggingRoleConfiguration type exposes the following members.

Public propertyBackend
Gets or sets the back-end that implements logging for the given Role.
Public propertyCustomRecordLoggingOptions Obsolete.
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.
Public methodGetAbstractSource
Gets the LoggingAbstractSource for a given Type in the current role.
Public eventPropertyChanged
Event raised when a property of this class changes.
Extension Methods
Public Extension MethodGetLogSource()Overloaded.
Gets a Logger for a given role and for the calling type.
(Defined by LoggerFactoryExtensions.)
Public Extension MethodGetLogSource(String)Overloaded.
Gets a LogSource for a given role and sourceName.
(Defined by LoggerFactoryExtensions.)
Public Extension MethodGetLogSource(Type)Overloaded.
Gets a LogSource for a given role and Type.
(Defined by LoggerFactoryExtensions.)
See Also