[logback-dev] [qos-ch/logback] 077e45: Fixed a bug in TimeBasedFileNamingAndTriggeringPol...

Tony Trinh tony19 at gmail.com
Mon Jun 8 09:52:33 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/qos-ch/logback
  Commit: 077e45c8f71045d75519e9c059ecbd1faee5cd09
      https://github.com/qos-ch/logback/commit/077e45c8f71045d75519e9c059ecbd1faee5cd09
  Author: s4nk <lukasz.sanek at gmail.com>
  Date:   2015-03-18 (Wed, 18 Mar 2015)

  Changed paths:
    M logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedFileNamingAndTriggeringPolicyBase.java

  Log Message:
  -----------
  Fixed a bug in TimeBasedFileNamingAndTriggeringPolicyBase causing the policy to always rollover according to the local system time and ignore the time zone passed in the file name pattern. LOGBACK-611 introduced the possibility to specify time zone in the file name pattern and the file names are now correctly created according to the specified time zone. However, rollover is still based on the old behaviour, e.g., if the pattern is set to /wombat/foo.{%d, UTC}, rollover will happen at midnight of the local system time, instead of midnight in UTC. If for example the log is created at 00:59+01:00 02/01/2015 (local system time), the rollover will happen at 00:00+01:00 03/01/2015 instead of 01:00+01:00 02/01/2015 (i.e., 00:00Z 02/01/2015).


  Commit: 542843fd04a793fb9e0eea0c84d199e66d7c15af
      https://github.com/qos-ch/logback/commit/542843fd04a793fb9e0eea0c84d199e66d7c15af
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2015-06-08 (Mon, 08 Jun 2015)

  Changed paths:
    M logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedFileNamingAndTriggeringPolicyBase.java

  Log Message:
  -----------
  Merge pull request #250 from s4nk/master

Fixed a bug in TimeBasedFileNamingAndTriggeringPolicyBase


Compare: https://github.com/qos-ch/logback/compare/3d9931355f47...542843fd04a7


More information about the logback-dev mailing list