[jboss-jira] [JBoss JIRA] Updated: (LOGMGR-28) PeriodicRotatingFileHandler does not roll the File on midnight when startet after 12PM

David Lloyd (JIRA) jira-events at lists.jboss.org
Tue Mar 22 17:01:45 EDT 2011


     [ https://issues.jboss.org/browse/LOGMGR-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Lloyd updated LOGMGR-28:
------------------------------

    Fix Version/s: 1.2.0.CR10


> PeriodicRotatingFileHandler does not roll the File on midnight when startet after 12PM
> --------------------------------------------------------------------------------------
>
>                 Key: LOGMGR-28
>                 URL: https://issues.jboss.org/browse/LOGMGR-28
>             Project: JBoss Log Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: core
>    Affects Versions: 1.2.0.CR9
>         Environment: Windows Server 2003, JDK 1.6.0_21-b07 64bit Server VM, Locale: de_AT
>            Reporter: Florian Lukschander
>            Assignee: David Lloyd
>              Labels: log, logging
>             Fix For: 1.2.0.CR10
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list