Open sandboxFocus

Method Visit

Visit<TValue>(string, TValue, in LoggingPropertyOptions, ref TState)

Called for each property in a LogEventData.

Declaration
void Visit<TValue>(string name, TValue value, in LoggingPropertyOptions options, ref TState state)
Parameters
Type Name Description
string name

The property name.

TValue value

The property value.

LoggingPropertyOptions options

The property options.

TState state

The state passed from the caller through the VisitProperties<TVisitorState>(ILoggingPropertyVisitor<TVisitorState>, ref TVisitorState, in LoggingPropertyVisitorOptions) method.

Type Parameters
Name Description
TValue

The type of the property.