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