Counter layout renderer

Kim Christensen edited this page Jun 6, 2015 · 2 revisions
Clone this wiki locally

A counter value (increases on each layout rendering).

Supported in .NET, Silverlight, Compact Framework and Mono.

Configuration Syntax

Starting in NLog v4.0 the sequence options have been changed from String to layout


The syntax for versions below NLog v4.0 is:



Counter Options

  • 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