LoggingProperty Class |
Represents a property (a name, a value and a few options).
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public sealed class LoggingProperty
The LoggingProperty type exposes the following members.
Name | Description | |
---|---|---|
LoggingProperty(String, Func<Object>) |
Initializes a new LoggingProperty and assigns it to a dynamic value.
| |
LoggingProperty(String, Object) |
Initializes a new LoggingProperty and assigns it to a constant value.
|
Name | Description | |
---|---|---|
Formatter |
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.
| |
IsBaggage |
Determines whether the property is cross-process. The default value is false. When this property is set to true, IsInherited is automatically
set to true.
| |
IsInherited |
Determines whether the property is inherited from the parent activity to children activities and messages. The default value is true.
When this property is set to false, IsBaggage is automatically set to false.
| |
IsRendered |
Determines whether the property will be included in the log message. The default value is false.
| |
Name |
Gets the property name.
| |
Value |
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.
|
Name | Description | |
---|---|---|
ToString | Returns a string that represents the current object. (Overrides Object.ToString().) |