Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

OutputDebugString target

Rolf Kristensen edited this page Jul 2, 2025 · 20 revisions

Outputs log messages through the OutputDebugString Win32 API. That can be monitored using DebugView or Harvester

Platforms Supported: Limited - Requires Windows and requires nuget-package NLog.OutputDebugString since NLog 5.0

Configuration Syntax

<targets>
  <target xsi:type="OutputDebugString" name="String" layout="Layout" />
</targets>

Read more about using the Configuration File.

Parameters

General Options

  • name - Name of the target.

Layout Options

  • layout - Layout used to format log messages. Required. Default: ${longdate}|${level:uppercase=true}|${logger}|${message:withexception=true}
  • header - Layout used to format header-output when initializing. Layout

    Introduced with NLog 5.0

  • footer - Layout used to format footer-output when closing. Layout

    Introduced with NLog 5.0

Notes

Alternative targets for diagnostic output:

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.