PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Property Class

LoggingProperty Class

Represents a property (a name, a value and a few options).
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.LoggingProperty

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public sealed class LoggingProperty

The LoggingProperty type exposes the following members.

Constructors
  NameDescription
Public methodLoggingProperty(String, Func<Object>)
Initializes a new LoggingProperty and assigns it to a dynamic value/
Public methodLoggingProperty(String, Object)
Initializes a new LoggingProperty and assigns it to a constant value.
Properties
  NameDescription
Public propertyFormatter
Gets or sets the formatter used to render the Value as a string. By default, the default formatter for the property value type is used.
Public propertyIsBaggage
Determines whether the property is cross-process. The default value is false.
Public propertyIsInherited
Determines whether the property is inherited from the parent activity to children activities and messages. The default value is true.
Public propertyIsRendered
Determines whether the property will be included in the log message. The default value is false.
Public propertyName
Gets the property name.
Public propertyValue
Gets the property value. The property is never rendered when the value is null. If the LoggingProperty has been initialized with a Func<object>, this property will evaluate the delegate every time the property getter is invoked.
See Also