Open sandboxFocus

Class LoggingRoles

Defines the standard logging roles.

Inheritance
LoggingRoles
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common.dll
Syntax
public static class LoggingRoles
Remarks

A role identifies the component that emits a log record. Together with a type or namespace name, it determines the source of the record, whose verbosity can be configured separately.

Caching and Meta are system roles: their records are emitted from the Warning level by default, and verbosity settings that do not name a role do not apply to them. To change their verbosity, specify the role explicitly.

Fields

Name Description
Audit

The role for audit records.

Caching

Log records emitted by the Caching component.

Custom

Default role for custom logging using the LogSource class.

Meta

Log records emitted by the logging component itself.

Tracing

Default role for the Logging component.

See Also