This is the online documentation for PostSharp 4.3.
Download PDF or CHM. Go to v4.3 or v5.0
LoggingProfile Class
Logging profiles are named configurations of logging aspects. They are typically instantiated in the PostSharp XML project file.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.LoggingProfile

Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public class LoggingProfile

The LoggingProfile type exposes the following members.

Constructors
  NameDescription
Public methodLoggingProfile
Initializes a new instance of the LoggingProfile class
Top
Properties
  NameDescription
Public propertyOnEntryLevel
Gets or sets the severity level for logging before method execution.
Public propertyOnEntryOptions
Gets or sets options for logging before method execution.
Public propertyOnExceptionLevel
Gets or sets the severity level for logging on method exception.
Public propertyOnExceptionOptions
Gets or sets options for logging on method exception.
Public propertyOnSuccessLevel
Gets or sets the severity level for logging on method success.
Public propertyOnSuccessOptions
Gets or sets options for logging on method success.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
Remarks

Logging profiles are defined in the PostSharp XML project file, in the section LoggingProfiles of XML namespace clr-namespace:PostSharp.Patterns.Diagnostics;assembly:PostSharp.Patterns.Diagnostics. Logging profiles can then be referred to from the LogAttribute. There are two system-defined logging profiles: Default and Exceptions

See Also