-
Notifications
You must be signed in to change notification settings - Fork 1.4k
DebugSystem target
Rolf Kristensen edited this page Sep 3, 2023
·
4 revisions
Sends log messages through System.Diagnostics.Debug.WriteLine
Platforms Supported: All (Introduced with NLog 5.0)
<targets>
<target xsi:type="DebugSystem" name="String" layout="Layout" />
</targets>
- name - Name of the target.
- layout - Layout used to format log messages. Layout Required
- header - Layout used to format header-output when initializing. Layout
- footer - Layout used to format footer-output when closing. Layout
Alternative targets for diagnostic output:
-
Trace-target for output to
System.Diagnostics.Trace
-
Debugger-target for output to
System.Diagnostics.Debugger.Log
-
OutputDebugString-target for output to
OutputDebugString
Win32 API
- 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