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.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
[Serializer(typeof(LoggingOptions.Serializer))]
public class LoggingOptionsConstructors
| 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 |
| IncludeParameterType | Determines whether the parameter types should be logged. The default value is |
| IncludeParameterValue | Determines whether the parameter values should be logged. The default value is |
| IncludeReturnValue | Determines whether the return value should be logged. The default value is |
| IncludeThisValue | Determines whether the value of |
| 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. |