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: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
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