-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Xml Encode Layout Renderer
Rolf Kristensen edited this page Apr 21, 2019
·
3 revisions
Converts the result of another layout output to be XML-compliant.
Platforms Supported: All
${xml-encode:xmlEncode=Boolean:inner=Layout}
or by using ambient property to modify output of other layout renderer:
${other:xmlEncode=Boolean}
- xmlEncode - Indicates whether to apply XML encoding. Boolean Default: True
- 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
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json