This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

PostSharp.Patterns.Diagnostics Namespace

The PostSharp.Patterns.Diagnostics namespace contains a logging aspect.
Classes
  ClassDescription
Public classCustomRecordLoggingOptions
Options for custom logging records. Exposed on the [!:RoleLoggingOptions.CustomRecordLoggingOptions] property.
Public classLogActivity
Public classLogAttribute
Custom attribute that, when applied on a method, causes PostSharp to implement tracing before and after execution of this method.
Public classLogAttributeBase
Base class for all method-level logging aspects.
Public classLogExceptionAttribute
Custom attribute that, when applied on a method, causes PostSharp to implement tracing upon exception in this method.
Public classLogger
Allows to emit custom log records and define custom activities.
Public classLoggingBackend
Base class for all logging back-ends (sometimes names sinks, targets, listeners) of the PostSharp logging system.
Public classLoggingBackendOptions
Options for the LoggingBackend class.
Public classLoggingBuildTimeConfiguration
Root element of the XML configuration (postsharp.config) for the Logging component.
Public classLoggingNamespaceSource
Allows to enable or disable logging for a whole namespace.
Public classLoggingOptions
Represents the build-time options for logging records. This class is exposed by DefaultOptions and ExceptionOptions. The values of this class cannot be changed at run-time because they influence the way PostSharp instruments the code.
Public classLoggingProfile
Logging profiles are named configurations of logging aspects and influence the way PostSharp generates the code instrumentation. They are typically instantiated in postsharp.config.
Public classLoggingProfileCollection
Collection of instances of the LoggingProfile class.
Public classLoggingProfileRepository
Provides access to logging profiles (LoggingProfile) at run-time. Exposed by the Profiles property. Note that each assembly of the AppDomain contains its own copy of each LoggingProfile used in this assembly, and each copy may be different, even if they have the same name.
Public classLoggingRoleConfiguration
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.
Public classLoggingRoleConfigurationRepository
Provides access to role-specific options (LoggingRoleConfiguration). This class is exposed on the Profiles.
Public classLoggingRoles
List of standard logging roles.
Public classLoggingServices
The entry point to configure PostSharp.Patterns.Diagnostics logging at run-time.
Public classLoggingServices.Formatters
Provides access to formatters. This class is exposed on the LoggingServices.Formatters property.
Public classLoggingTypeSource
Allows to enable or disable logging for a specific SourceType and exposes some information regarding this SourceType/
Public classLogRecordKindExtensions
Extensions to the LogRecordKind enum.
Public classLogValueAttribute
Custom attribute that, when applied on a field or property, causes PostSharp to implement tracing when its value changes.
Public classNotLoggedAttribute
Indicates that the value of this parameter should not be logged.
Structures
  StructureDescription
Public structureLogActivityOptions
Interfaces
  InterfaceDescription
Public interfaceILogAspect
Base interface for all method-level logging aspects.
Public interfaceILogValueAspect
Base interface for all location-level logging aspects.
Enumerations
  EnumerationDescription
Public enumerationLogActivityKind
Public enumerationLogLevel
Specifies the severity of a logged message.
Public enumerationLogRecordKind
Kinds of log entry.