PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Options Class

LoggingOptions Class

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.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.LoggingOptions

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

The LoggingOptions type exposes the following members.

Constructors
  NameDescription
Public methodLoggingOptions
Initializes a new LoggingOptions.
Properties
  NameDescription
Public propertyIncludeGenericParameters
Not implemented.
Public propertyIncludeParameterName
Determines whether the parameter names should be logged. The default value is false.
Public propertyIncludeParameterType
Determines whether the parameter types should be logged. The default value is false.
Public propertyIncludeParameterValue
Determines whether the parameter values should be logged. The default value is true.
Public propertyIncludeReturnValue
Determines whether the return value should be logged. The default value is true.
Public propertyIncludeThisValue
Determines whether the value of this argument in an instance method should be logged. The default value is false.
Public propertyLevel
Gets or sets the LogLevel with which the record should be emitted. The default value is Debug.
Methods
  NameDescription
Public methodClone
Returns a clone of the current object.
Public methodFreeze
Prevents the object from being modified.
Public methodMerge
Merges the values of another LoggingOptions object within the current object. The values of the other object take precendence over the values of the current object.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also