Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

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

Applies caching to another layout output. 

Supported in

Configuration Syntax

${cached:cached=Boolean:inner=Layout}

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

${other:cached=Boolean}
Read more about using the Configuration File.

Parameters

  • Caching Options
  • cached - Indicates whether this CachedLayoutRendererWrapper is enabled.Boolean Default: True
  • Transformation Options
  • inner - Wrapped layout.Layout

Remarks

The value of the inner layout will be rendered only once and reused subsequently.