-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Extending NLog
Rolf Kristensen edited this page May 18, 2022
·
22 revisions
The following article has related news post: Extending NLog is... easy!
If one needs to capture additional context for target output, then one can create own custom NLog LayoutRenderer. But usually most people will just make use of NLog LogEvent Properties for providing custom context. Ensure also to check the available layoutrenderers.
If one needs to redirect output to a different output target destination, then one can create own custom NLog Target. But usually most people will just make use of NLog Network-Target or NLog WebService-Target and override the NLog Layout to match the payload format. Ensure also to check the available targets.
- 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