Click or drag to resize

TargetWithContextSerializeScopeContextNestedState Method

Take snapshot of a single object value from ScopeContext nested states

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

Parameters

logEvent
Type: NLogLogEventInfo
Log event
value
Type: SystemObject
ScopeContext nested state value
serializedValue
Type: SystemObject
Snapshot of ScopeContext stack item value

Return Value

Type: Boolean
Include object value in snapshot
See Also