-
Notifications
You must be signed in to change notification settings - Fork 1.4k
WhenEmpty Layout Renderer
Rolf Kristensen edited this page Apr 21, 2019
·
4 revisions
Outputs alternative layout when the inner layout produces empty result.
Platforms Supported: All
${whenEmpty:whenEmpty=Layout:inner=Layout}
or by using ambient property to modify output of other layout renderer:
${other:whenEmpty=Layout}
- whenEmpty - Layout to be rendered when original layout produced empty result. Layout Required.
- inner - Wrapped layout. Layout
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
- Getting started
- How to use structured logging
- Troubleshooting
- FAQ
- Articles about NLog
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json