https://issues.apache.org/bugzilla/show_bug.cgi?id=52699
Bug #: 52699
Summary: Misleading DailyRollingFileAppender javadoc
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Appender
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
It seems like the javadoc for this class was written by someone that thinks
midnight happens at the end of the day. Ex:
> At midnight, on March 8th, 2002, /foo/bar.log will be copied to
> /foo/bar.log.2002-03-08. Logging for the 9th day of March will be output to
> /foo/bar.log until it is rolled over the next day.
But at 00:00:00 8/3/12, no logging events for 8/3 have been generated, and
logging for the 9th day of March doesn't even start until the next day (after
it has rolled over?)
So, if I understand the code correctly, this should instead read
> At midnight, on March 8th, 2002, /foo/bar.log will be copied to
> /foo/bar.log.2002-03-07. Logging for the 8th day of March will be output to
> /foo/bar.log until it is rolled over the next day.
P.S. the comment on line 319 is also wrong, I think.
s/datedFilename/scheduledFilename/
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]