How about when the files get rolled? The Appender should write the closing tags, close the file and write the opening tags in the new log file.
-Raghu Toppur -----Original Message----- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 12:05 PM To: 'Log4J Users List' Subject: RE: RollingFileAppender with HTMLLayout question If append is set to true, and the file exists, then don't write the headers. If append is set to true and file does not exist, then write the headers. If append is false, always write the headers. Maybe it should be smart enough to handle the ending body tag as well (write it when the appender is closed, remove it when reopened with append). Create a patch and submit it as a bug fix (via the apache bug database). It sounds useful to me. -Mark > -----Original Message----- > From: bryan hansen [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 31, 2002 9:23 AM > To: [EMAIL PROTECTED] > Subject: RollingFileAppender with HTMLLayout question > > > I am using a RollingFileAppender with an HTMLLayout in > a Java/Swing application that logs just fine, but when > they stop and start the application it duplicates all > the HTML headers. It never closes off the exisiting > body tags in the HTML. It would seem to me that with > the append set to true that it would see if the file > exists and just write the messages to the file, but > instead it inserts all new header information? Does > this seem right? I wouldn't expect that this would be > the desired functionality in any situation web > application or standalone. > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
