PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Logging­Property­Options Structure / Logging­Property­Options Constructor

LoggingPropertyOptions Constructor

Initializes a new LoggingPropertyOptions.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
public LoggingPropertyOptions(
	bool isRendered = false,
	bool isInherited = false,
	bool isBaggage = false,
	bool isIgnored = false,
	IFormatter formatter = null


isRendered (Optional)
Type: System.Boolean
Determines whether the property will be included in the log message. The default value is false, then the property is only available as an additional property, if this is supported by the backend.
isInherited (Optional)
Type: System.Boolean
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.
isBaggage (Optional)
Type: System.Boolean
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.
isIgnored (Optional)
Type: System.Boolean
Determines whether this property must be ignored by the VisitProperties<TVisitorState>(Object, ILoggingPropertyVisitor<TVisitorState>, TVisitorState, LoggingPropertyVisitorOptions) method.
formatter (Optional)
Type: PostSharp.Patterns.Formatters.IFormatter
The formatter to be used to render the property value.
See Also