-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Targets
Rolf Kristensen edited this page Jul 2, 2025
·
88 revisions
Targets are used to display, store, or pass log messages to another destination. There are two kinds of target:
- Targets that writes the LogEvents
- 'Wrapper' Targets that apply additional logic when writing to wrapped Target. Logic can be filtering / batching / retry-on-error / etc.
List of NLog targets can found here: https://nlog-project.org/config/?tab=targets
NLog can be extended with custom new targets. For more information, see: Extending NLog
- 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