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