Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.