Skip to content

Left layout renderer

Rolf Kristensen edited this page Apr 22, 2019 · 5 revisions

Left part of a text.

Platforms Supported: All

Introduced in NLog 4.6

Related:

Configuration Syntax

Explicit usage:

${left:inner=Layout:length=Integer}

Ambient property truncate can be used as a shortcut (Introduced with NLog ver. 4.6.3)

${message:truncate=80}

Read more about using the Configuration File.

Parameters

Transformation Options

  • inner - Wrapped layout. [DefaultParameter] so Inner: is not required if it's the first Layout

  • length - Length in characters. Integer Required.

Clone this wiki locally