DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23056>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23056 DailyRollingFileAppender problems Summary: DailyRollingFileAppender problems Product: Log4j Version: 1.2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Appender AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] There are several problems with the DailyRollingFileAppender: 1. It appears that when log4j is first initialised that on creating the first file, it adds two headers, this is because it calls the constructor of the superclass (which calls the setFile method which writes the header), and the activateOptions of the superclass (which also calls the setFile method). This can be resovled by setting a flag in the WriterAppender class to see if it has already been written. 2. On roll over, the DailyRollingFileAppender does not write a footer to every file. See bug 11446 for more details. 3. The DailyRollingFileAppender does not allow you to append to files. This can be fixed by adding a boolean flag to the constructor or by making the setAppend method public. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]