title: log4net configuration for logging to textbox
body: <p>I'm having difficulties trying to understand the configurations for log4net formName and textBoxName elements. I have been following an earlier question <a href="https://stackoverflow.com/questions/14114614/configuring-log4net-textboxappender-custom-appender-via-xml-file">here</a></p>
  
  <p>specifically I am trying to create a custom user control containing a textbox to act as the logger </p>
  
  <pre><code>namespace foo {
      public partial class LoggingControl : UserControl, IAppender {
          private ILog _logger = LogManager.GetLogger(typeof(LoggingControl));
  
          public LoggingControl() {
              InitializeComponent();
          }
  
          public ILog Logger {
              get {
                  return _logger;
              }
          }
  
          public string FormName {
              get;
              set;
          }
  
          public string TextBoxName {
              get;
             set;
          }
  
          public void DoAppend(log4net.Core.LoggingEvent loggingEvent) {
              textBox.AppendText(loggingEvent.MessageObject.ToString() + Environment.NewLine);
          }
  
          public void Close() {
          }
      }
  }
  </code></pre>
  
  <p>in my config I have </p>
  
  <pre><code>&lt;log4net&gt;
      &lt;appender name="Logger" type="foo.LoggingControl"&gt;
          &lt;formName value="MainForm"/&gt;    --- ###01
          &lt;textBoxName value="textBox"/&gt;  --- ###02
          &lt;root&gt;
              &lt;level value="DEBUG"&gt;
                  &lt;appender-ref ref="textbox"&gt;
                  &lt;/appender-ref&gt;
              &lt;/level&gt;
           &lt;/root&gt;
      &lt;/appender&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <ol>
  <li>is set to the name of the form that contains the custom control
  which contains the logging textbox</li>
  <li>is set to the name of the textbox inside the custom control.</li>
  </ol>
  
  <p>This isn't working, what am I missing?</p>