Problem with fileNamePattern for daily rollover

14 Dec
2011
14 Dec
'11
2:44 p.m.
Hello, I'd like to set up a daily rollover: <appender name="monitoringAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> <append>true</append> <file>log/monitoring.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <!-- daily rollover --> <fileNamePattern>log/monitoring-%d{EE}.log</fileNamePattern> <maxHistory>7</maxHistory> </rollingPolicy> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} - %msg%n</pattern> </encoder> </appender> but when I set up the fileNamePattern with %d{EE} archives are not created. Using the default pattern %d{yyyy-MM-dd} works fine. Am I doing something wrong? Thanks, Christophe
5042
Age (days ago)
5042
Last active (days ago)
0 comments
1 participants
participants (1)
-
Christophe Roudet