Skip to content

Substring layout renderer

Julian Verdurmen edited this page Oct 25, 2019 · 4 revisions

Substring the result

Platforms Supported: All

Introduced in NLog 4.6

Related:

Configuration Syntax

${substring:inner=Layout:length=Integer:start=Integer}

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. If null, then the whole string Integer. Default: null

  • start - Start index. Integer Default: 0

Clone this wiki locally