Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Pad 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.

Applies padding to another layout output. 

Supported in

Configuration Syntax

${pad:padCharacter=Char:padding=Integer:fixedLength=Boolean
     :inner=Layout}

or by using ambient property to modify output of other layout renderer:

${other:padCharacter=Char}
Read more about using the Configuration File.

Parameters

  • Transformation Options
  • padCharacter - Padding character.Char Default:
  • padding - Number of characters to pad the output to.Integer
    Positive padding values cause left padding, negative values cause right padding to the desired width.
  • fixedLength - Indicates whether to trim the rendered text to the absolute value of the padding length.Boolean Default: False
  • inner - Wrapped layout.Layout
Ads by Lake Quincy Media