[logback-dev] [Bug 86] New: Time based logfile rotation does not log, uses 1970-01-01 as date

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Jul 10 16:51:48 CEST 2007


http://bugzilla.qos.ch/show_bug.cgi?id=86

           Summary: Time based logfile rotation does not log, uses 1970-01-
                    01 as date
           Product: logback-core
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Rolling
        AssignedTo: logback-dev at qos.ch
        ReportedBy: 8625330 at web.de


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{tid}][%15.15mdc{uid}] [%logger{20}] %msg%n </pattern>
                </layout>
        </appender>


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the logback-dev mailing list