Here's a part of the logback:
<appender name="APP_LOG"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${APP_HOME}/loader.log</file>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</Pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- rollover daily -->
<fileNamePattern>${APP_HOME}/archived/loader.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- Keep logs max for x days -->
<maxHistory>1</maxHistory>
<cleanHistoryOnStart>true</cleanHistoryOnStart>
</rollingPolicy>
</appender>
This should create a new log file every day. Today is Jan-13-2016, therefore if there is no log for Jan-12-2016 it should just put the current log into loader.2016-01-12.0.log and then create a new log file right? It's not doing that.
It should also be deleting the files loader.2015-12-30.0.log and loader.2016-01-11.0.log but it's not doing that either.
All I'm doing is starting the application in an Eclipse based IDE, and I can verify that the log file loader.log is changing every time the application runs. Which means logback is starting, but for some reason it's not cleaning up old files properly. Please help?