Skip to content
Rolf Kristensen edited this page May 4, 2024 · 6 revisions

Pops up log messages as message boxes.

Platforms Supported: .NetFramework + .NetCore3.1 + NET6.0 + NET8.0 - Requires nuget-package NLog.Windows.Forms

Configuration Syntax

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

Parameters

General Options

  • name - Name of the target.

Layout Options

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

UI Options

  • caption - Message box title. Layout