Take the 2-minute tour ×

I have used following config of NLog to add the log text to control of specified Name on specified form.

    <target name="control" xsi:type="FormControl" append="true" 
            controlName="textBox1" formName="Form1"/> 
    <logger name="*" minlevel="Debug" writeTo="control"/> 

I have a form with name Form1 and control on it with the name textBox1. Still nLog cretes a new form in runtime and adds a docked textbox to it and shows the logs in it.

Now how to make nLogwrite the logs to MY form and MY Control

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Got the issue:

The names used in config are case sensitive.

textBox1 should have been TextBox1

share|improve this answer
add comment

Your Answer


