-
Notifications
You must be signed in to change notification settings - Fork 1.4k
All Event Properties Layout Renderer
Rolf Kristensen edited this page Sep 4, 2023
·
23 revisions
Log event all context data.
Platforms Supported: All
Introduced in NLog v4.0.
To log one property, use ${event-properties}
. See also NLog Context.
${all-event-properties:format=String:separator=String:includeEmptyValues=boolean:includeScopeProperties=boolean}
-
format - How key/value pairs will be formatted. The placeholder used to define placement of the key is,
[key]
, and the placeholder for value is,[value]
.- Default value:
[key]=[value]
- Default value:
-
separator - The string that will be used to separate key/value pairs. Default value:
,
-
includeCallerInformation - Also render the caller information attributes? Default:
false
Introduced in NLog 4.1. Deprecated with NLog v4.6.8. Removed again with NLog v5 (Net45 required)
-
includeEmptyValues - include empty values? A value is empty when null or in case of a string, null or empty string. Default value:
false
Introduced in NLog 4.6.4.
-
exclude - LogEvent property-key-names to exclude from output. List of keys can be passed as comma separated values, e.g.:
Key1,Key2
Introduced in NLog 4.6.8
-
includeScopeProperties - Include ScopeContext Properties together with LogEvent Properties.
Introduced in NLog 5.0
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
- Getting started
- How to use structured logging
- Troubleshooting
- FAQ
- Articles about NLog
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json