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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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.
_______________________________________________
logback-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to