Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Counter layout renderer

NLog documentation is a Wiki, which allows registered users to edit its content.
If you want to contribute, please create a user account and contact Jarek to get edit access.

A counter value (increases on each layout rendering). 

Supported in

Configuration Syntax

${counter:increment=Integer:sequence=String:value=Integer}
Read more about using the Configuration File.

Parameters

  • 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