Click or drag to resize

TargetWithContextGetAllProperties Method (LogEventInfo, IDictionaryString, Object)

Creates combined dictionary of all configured properties for logEvent

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
protected IDictionary<string, Object?> GetAllProperties(
	LogEventInfo logEvent,
	IDictionary<string, Object?>? combinedProperties
)

Parameters

logEvent
Type: NLogLogEventInfo
combinedProperties
Type: System.Collections.GenericIDictionaryString, Object
Optional prefilled dictionary

Return Value

Type: IDictionaryString, Object
Dictionary with all collected properties for logEvent
See Also