-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Url Encode Layout Renderer
Rolf Kristensen edited this page Apr 21, 2019
·
4 revisions
Encodes the result of another layout output for use with URLs.
Platforms Supported: All
${url-encode:spaceAsPlus=Boolean:inner=Layout}
- spaceAsPlus - Indicates whether spaces should be translated to '+' or '%20'. Boolean
- inner - Wrapped layout. Layout
- escapeDataRfc3986 - NLog will by default encode as UTF8 and escape special characters according to Rfc2396. To escape data according to standard Rc3986, set this option to 'true' (Available from NLog 4.4)
- escapeDataNLogLegacy - NLog will by default encode as UTF8 and escape special characters according to Rfc2396. To escape data according to the old non-standard NLog style, set this option to 'true' (Available from NLog 4.4)
- 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