Open sandboxFocus

Method WithAdditionalProperty

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 = default)
Parameters
Type Name Description
string propertyName
T propertyValue
LoggingPropertyOptions options
Returns
Type Description
LogEventData
Type Parameters
Name Description
T