Click or drag to resize

TargetWithContextCaptureContextGdc Method

Takes snapshot of GlobalDiagnosticsContext for the LogEventInfo

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
protected virtual IDictionary<string, Object> CaptureContextGdc(
	LogEventInfo logEvent,
	IDictionary<string, Object> contextProperties
)

Parameters

logEvent
Type: NLogLogEventInfo
contextProperties
Type: System.Collections.GenericIDictionaryString, Object
Optional pre-allocated dictionary for the snapshot

Return Value

Type: IDictionaryString, Object
Dictionary with GDC context if any, else null
See Also