title: C# Log4net Daily Log File Config & Usage Example
body: <p>Could someone please provide an example on how to setup &amp; log into a daily log file in YYYYMMDD format for log4net used in c#. The log file should be name Data_20110407.txt, Data_20110408.txt and so on.</p>
  
  <pre><code>&lt;appender name="ErrorLogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
  bla bla...?
  
  And in c# how should i call to log into this specific log? Log4Net.Error() or something?
  </code></pre>
  
  <p>Thanks for help!</p>