https://issues.apache.org/bugzilla/show_bug.cgi?id=44934
Summary: add helper method to DailyRollingFileAppender to
generate schedule file name
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P2
Component: Appender
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Request to add helper method to DailyRollingFileAppender to generate schedule
file name. That way, subclasses can determine the names of the files that the
appender will archive to. i.e.,
Change Log4j v1.2.15 from
void rollOver() throws IOException {
...
String datedFilename = fileName+sdf.format(now);
...
}
to
void rollOver() throws IOException {
...
String datedFilename = getScheduledFileName(now);
...
}
/**
* Subclasses may override this to change the name
* of file that logs get rotated to.
*
* @param date [in] (non-null) time used to tag logs being rotated out
*
* @return name of file [to rotate to]
*/
protected String getScheduledFileName(Date date) {
return fileName + sdf.format(now);
}
--
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]