-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Counter layout renderer
Rolf Kristensen edited this page Apr 21, 2019
·
4 revisions
A counter value (increases on each layout rendering).
Platforms Supported: All
Starting in NLog v4.0 the sequence options have been changed from String to layout
${counter:increment=Integer:sequence=Layout:value=Integer}
The syntax for versions below NLog v4.0 is:
${counter:increment=Integer:sequence=String:value=Integer}
- increment - Value to be added to the counter after each layout rendering. Integer Default: 1
- sequence - Name of the sequence. Different named sequences can have individual values.
- value - Initial value of the counter. Integer Default: 1
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
- Getting started
- How to use structured logging
- Troubleshooting
- FAQ
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json