Skip to content

OnException Layout Renderer

Rolf Kristensen edited this page Oct 25, 2022 · 4 revisions

Only outputs the inner layout when exception has been defined for log message.

Platforms Supported: All

Configuration Syntax

${onexception:inner=Layout}

Parameters

Transformation Options

  • inner - Wrapped layout. Layout
  • else - Layout if the condition is not true (introduced in NLog 5.0.5)
Clone this wiki locally