Skip to content

OutputDebugString target

Rolf Kristensen edited this page May 13, 2022 · 19 revisions

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

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

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