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
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#clea... 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