-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Literal Layout Renderer
Rolf Kristensen edited this page Apr 21, 2019
·
3 revisions
A string literal.
Platforms Supported: All
${literal:text=String}
- text - Literal text.
This is used to escape '${' sequence as ;${literal:text=${}'
.
Configuration:
${literal:text=Some Text with ${ in it}
Code:
logger.Debug("Test Message")
Result:
Some Text with ${ in it
- 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