- Notifications
You must be signed in to change notification settings - Fork1.4k
DebugSystem target
Rolf Kristensen edited this pageSep 3, 2023 ·4 revisions
Sends log messages through System.Diagnostics.Debug.WriteLine
Platforms Supported:All (Introduced with NLog 5.0)
<targets> <targetxsi: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
OutputDebugStringWin32 API
-Troubleshooting Guide - See available NLog Targets and Layouts:https://nlog-project.org/config
- All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json