Click or drag to resize

TargetWithContextSerializeScopeContextProperty Method

Take snapshot of a single object value from ScopeContext dictionary

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
protected virtual bool SerializeScopeContextProperty(
	LogEventInfo logEvent,
	string name,
	Object value,
	out Object serializedValue
)

Parameters

logEvent
Type: NLogLogEventInfo
Log event
name
Type: SystemString
ScopeContext Dictionary key
value
Type: SystemObject
ScopeContext Dictionary value
serializedValue
Type: SystemObject
Snapshot of ScopeContext property-value

Return Value

Type: Boolean
Include object value in snapshot
See Also