title: Logback - delete the log file on startup
body: <p>I want to delete the log file each time the program is started as opposed to it being appended. I've tried using the cleanHistoryOnStart property but that seems to have no effect whatsoever. I'm probably missing something here.</p>
  
  <p>I am on Linux and using Eclipse if that matters.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration scan="true" scanPeriod="10 seconds"&gt;
    &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
      &lt;encoder&gt;
        &lt;pattern&gt;%d{dd.MM.yyyy. HH:mm:ss} %level [%thread] %logger{20} - %msg%n&lt;/pattern&gt;
      &lt;/encoder&gt;
    &lt;/appender&gt;
    &lt;appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;file&gt;chat.log&lt;/file&gt;
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
        &lt;fileNamePattern&gt;chat.log.%d{yyyy-MM-dd}&lt;/fileNamePattern&gt;
        &lt;cleanHistoryOnStart&gt;true&lt;/cleanHistoryOnStart&gt;
      &lt;/rollingPolicy&gt;
      &lt;encoder&gt;
        &lt;pattern&gt;%d{dd.MM.yyyy. HH:mm:ss} %level [%thread] %logger{20} - %msg%n&lt;/pattern&gt;
      &lt;/encoder&gt;
      &lt;Encoding&gt;utf-8&lt;/Encoding&gt;
    &lt;/appender&gt;
    &lt;logger name="src" additivity="false" level="ALL"&gt;
      &lt;appender-ref ref="STDOUT"/&gt;
      &lt;appender-ref ref="FILE"/&gt;
    &lt;/logger&gt;
    &lt;root level="OFF"&gt;
      &lt;appender-ref ref="STDOUT"/&gt;
    &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>