-
Notifications
You must be signed in to change notification settings - Fork 1.4k
MessageBox target
Rolf Kristensen edited this page Aug 2, 2023
·
10 revisions
Pops up log messages as message boxes.
Platforms Supported: .NetFramework + NETCore3.1 + NET6.0 - Requires nuget-package NLog.Windows.Forms
<targets>
<target xsi:type="MessageBox" name="String" layout="Layout" caption="Layout" />
</targets>
Read more about using the Configuration File.
- name - Name of the target.
-
layout - Layout used to format log messages. Layout Required. Default:
${longdate}|${level:uppercase=true}|${logger}|${message:withexception=true}
- caption - Message box title. Layout
- 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