title: Adding console appender to a windows form in log4net
body: <p>Is it possible to add a console to a form based C# application ?
  Currently when I do something like</p>
  
  <pre><code>Console.WriteLine("testing");
  </code></pre>
  
  <p>It appears in output window of the VS2010.
  I want to know if its possible to attach a console to my windows form application.So that the output appears in the console.</p>
  
  <p>EDIT:
  Looks like my first question was a bit misleading and it did not exactly specify what I wanted to accomplish. I just added a console to my application using</p>
  
  <pre><code>    [DllImport("kernel32")]
      static extern int AllocConsole();
  </code></pre>
  
  <p>However what I really want is the output of log4net console appender to be displayed in 
  that console which is not happening.
  The xml for my appender is </p>
  
  <pre><code>  &lt;appender name="ColoredConsoleAppender" type="log4net.Appender.ColoredConsoleAppender"&gt;
      &lt;mapping&gt;
        &lt;level value="INFO" /&gt;
        &lt;foreColor value="White" /&gt;
        &lt;backColor value="Red, HighIntensity" /&gt;
      &lt;/mapping&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%class %date - %message %newline" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  </code></pre>
  
  <p>now when I go like</p>
  
  <pre><code> log.info("Some log");
  </code></pre>
  
  <p>It still does not display it in the newly added console window. Any suggestions on how i could do that ?</p>