PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomLog­Event­DataWith­Additional­Property
Open sandboxFocus

LogEventData.WithAdditionalProperty Method

WithAdditionalProperty<T>(String, T, in LoggingPropertyOptions)

Returns a LogEventData that augments the current one with an additional property, but does not change the expression model.

Declaration
public LogEventData WithAdditionalProperty<T>(string propertyName, T propertyValue, in LoggingPropertyOptions options = null)
Parameters
Type Name Description
System.String propertyName
T propertyValue
LoggingPropertyOptions options
Returns
Type Description
LogEventData
Type Parameters
Name Description
T