Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

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

Only outputs the inner layout when the specified condition has been met. 

Supported in

Configuration Syntax

${when:when=Condition:inner=Layout}

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

${other:when=Condition}
Read more about using the Configuration File.

Parameters

  • Transformation Options
  • when - Condition that must be met for the inner layout to be printed.Condition Required.
  • inner - Wrapped layout.Layout