title: How to use App.config in WPF application for log4net configuration
body: <p>Currently im working on a WPF version of an existing console application.
  In the console application i use log4net to do all my logging.
  Therefore i configured all my appenders etc in the App.config file.
  Everything works fine in the console application.</p>
  
  <p>Now i want to implement the same logging functionality in my WPF application.
  I have to say that im totally new in WPF and this is my first WPF project.
  I just tried to add the App.config (exactly the same one) to my WPF project as i had it in my console application.
  But it does not work. No files are created by the FileAppenders. But i also dont get any error or warning when compiling.</p>
  
  <p>What do i have to do to get the same logging functionality for log4net as in my console app?
  How can i configure log4net (Appenders) in an WPF application?</p>
  
  <p>Thx in advance</p>
  
  <p>xxxxxx Edit xxxxxx</p>
  
  <p>Based on Roberts hint i could solve it.
  I added</p>
  
  <pre><code>log4net.Config.XmlConfigurator.Configure()
  </code></pre>
  
  <p>to my Main Window. Now my logging works exactly in the same way as it does in my console application.</p>
  
  <pre><code>public MainWindow()
      {
          // check if Application is already running
          // if it is running - Kill
          if (System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetEntryAssembly().Location)).Length &gt; 1) System.Diagnostics.Process.GetCurrentProcess().Kill();
          log4net.Config.XmlConfigurator.Configure(); 
          InitializeComponent();
      }
  </code></pre>