Open sandboxFocus

Class LoggingOptions

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
LoggingOptions
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
[Serializer(typeof(LoggingOptions.Serializer))]
public class LoggingOptions

Constructors

Name Description
LoggingOptions()

Initializes a new LoggingOptions.

LoggingOptions(PortableFormatterConstructorContext)

Properties

Name Description
IncludeGenericParameters

Not implemented.

IncludeParameterName

Determines whether the parameter names should be logged. The default value is false.

IncludeParameterType

Determines whether the parameter types should be logged. The default value is false.

IncludeParameterValue

Determines whether the parameter values should be logged. The default value is true.

IncludeReturnValue

Determines whether the return value should be logged. The default value is true.

IncludeThisValue

Determines whether the value of this argument in an instance method should be logged. The default value is false.

Level

Gets or sets the LogLevel with which the record should be emitted. The default value is Debug.

Methods

Name Description
Clone()

Returns a clone of the current object.

Freeze()

Prevents the object from being modified.

Merge(LoggingOptions)

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.