Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-28

PeriodicRotatingFileHandler does not roll the File on midnight when startet after 12PM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.0.GA
    • 1.2.0.CR9
    • core

    Description

      If the Logging is initialized after 12 P.M. the PeriodicRotatingFileHandler does not roll the file on midnight if the suffix '.yyyy-MM-dd' or Period=DAY is being used.

      The culprit for this cause is in my unterstanding the usage of Calendar.clear(..) for the 'HOUR_OF_DAY' Field. As stated in http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html#clear(int) the HOUR value will not be cleared in this case.

      Probably the HALF_DAY Period setting has the same problem.

      Attachments

        Issue Links

          Activity

            People

              dlloyd@redhat.com David Lloyd
              flukschander Florian Lukschander (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: