Logs text to Windows.Forms.ToolStripItem property control of specified Name.
Platforms Supported: All - Requires nuget-package NLog.Windows.Forms
<targets> <target xsi:type="ToolStripItem" name="String" layout="Layout" itemName="Layout" toolStripName="Layout" formName="Layout" /> </targets>
Read more about using the Configuration File.
${longdate}|${level:uppercase=true}|${logger}|${message:withexception=true}
itemName - Layout that resolves to the name of the ToolStripItem to which NLog will log write log text. Layout Required
toolStripName - Layout that resolves to the name of ToolStrip that contains the ToolStripItem to which NLog will log write log text. Layout Required.
formName - Layout that resolves to the name of the Form on which the ToolStrip is located. Layout
There was an error while loading. Please reload this page.