There was an error while loading. Please reload this page.
Logs text to Windows.Forms.Control.Text property control of specified Name.
Platforms Supported: All - Requires nuget-package NLog.Windows.Forms
<targets> <target xsi:type="FormControl" name="String" layout="Layout" append="Boolean" reverseOrder="Boolean" controlName="Layout" formName="Layout" /> </targets>
Read more about using the Configuration File.
${longdate}|${level:uppercase=true}|${logger}|${message:withexception=true}
append - Indicates whether log text should be appended to the text of the control instead of overwriting it. Boolean Default: True
reverseOrder - Indicates whether log text should be appended or prepended. Boolean Default: False
controlName - Name of control to which NLog will log write log text. Layout Required.
formName - Name of the Form on which the control is located. Layout Required.