Click or drag to resize

LoggerProperties Property

Collection of context properties for the Logger. The logger will append it for all log events

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public IDictionary<string, Object> Properties { get; }

Property Value

Type: IDictionaryString, Object
Remarks
It is recommended to use WithProperty(String, Object) for modifying context properties when same named logger is used at multiple locations or shared by different thread contexts.
See Also