title: log4net one file per run
body: <p>I need my application to create a log file each time it runs.</p>
  
  <p>My preferred format would be <strong>App.log.yyyy-MM-dd_HH-mm-ss</strong>. If that's not possible, I'd settle for <strong>App.log.yyyy-MM-dd.counter</strong></p>
  
  <p>This is my current appender configuration:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;appender name="File" type="log4net.Appender.RollingFileAppender"&gt;
    &lt;file value="App.log"/&gt;
    &lt;rollingStyle value="Date"/&gt;
    &lt;datePattern value=".yyyy-MM-dd_HH-mm-ss"/&gt;
    &lt;staticLogFileName value="false"/&gt;
    &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt;
  &lt;/appender&gt;
  </code></pre>
  
  <p>But it creates a random number of files based on the date and time.</p>