Click or drag to resize

TargetWithContextSerializeItemValue Method

Take snapshot of a single object value

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
protected virtual bool SerializeItemValue(
	LogEventInfo logEvent,
	string name,
	Object value,
	out Object serializedValue
)

Parameters

logEvent
Type: NLogLogEventInfo
Log event
name
Type: SystemString
Key Name (null when NDC / NDLC)
value
Type: SystemObject
Object Value
serializedValue
Type: SystemObject
Snapshot of value

Return Value

Type: Boolean
Include object value in snapshot
See Also