Details
-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
None
-
None
-
Operating System: Linux
Platform: PC
-
86
Description
Sometimes/Most of the time TimebasedRolling does not work.
- Log files have 1970-01-01 for %d in the name.
- Log files contain only one line i.e. file gets overwritten with every log statement.
- restart seems to help, probably till midnight
- did not happen with older versions SLF4J 1.3 and (probably) Logback 0.9.3
Used in combination with jcl-over-slf.
<appender name="XXX_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender" >
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern> ${XxxLogDir}/xxx.%d.log </FileNamePattern>
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern> %date %-5level [%8.-8mdc
][%15.15mdc
{uid}] [%logger
{20}] %msg%n </pattern>
</layout>
</appender>
Attachments
Issue Links
- duplicates
-
LOGBACK-50 TimeBasedRollingPolicy do NOT work as expected
- Resolved