For a ch.qos.logback.core.rolling.RollingFileAppender
add the following rolling policy:
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>logFile.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- keep 7 days' worth of history -->
<maxHistory>7</maxHistory>
</rollingPolicy>
No need for any external solutions, logback will take care of your logging history for you. For this and other information, the logback manual is always a good source.