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.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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