title: How to read log4Net from web.config
body: <p>I am using log4net to perform daily logging. 
  <br>I realize that log4net doesn't support deleting old files in this fashion.</p>
  
  <p>I am trying to write my own method to accomplish this task, however I am no sure how to read the log4net settings from the web.config file.</p>
  
  <p>I've tried:</p>
  
  <pre><code>var log4NetData = ConfigurationManager.GetSection("log4net");
  </code></pre>
  
  <p>However I get this as my results:</p>
  
  <blockquote>
    <p>The type 'System.Configuration.ConfigXmlElement' exists in both 'System.Configuration.dll' and 'System.dll'</p>
  </blockquote>
  
  <p>How can I read the log4net node from my web.config?</p>