-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Layout Renderers
Rolf Kristensen edited this page May 7, 2022
·
73 revisions
Layout renderers are template macros that are used in Layouts, e.g. ${message}
, ${level}
etc
All layout renderers could be found here: https://nlog-project.org/config/?tab=layout-renderers
NLog supports creating custom layout renderers. For more information, see: Extending NLog
Even though the layout renderers provide many pre-defined values, you may need to pass application specific values to your Layouts. You can provide own Context state, that can then be rendered by differents Layouts. For example by using LogEvent Properties, that can be rendered using using the ${event-properties} renderer.
- 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