You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2003/07/22 14:19:01 UTC
DO NOT REPLY [Bug 21794] New: -
HtmlLayout not closing table, body, and html tags on close
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=21794>.
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=21794
HtmlLayout not closing table, body, and html tags on close
Summary: HtmlLayout not closing table, body, and html tags on
close
Product: Log4j
Version: 1.3alpha
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Layout
AssignedTo: log4j-dev@jakarta.apache.org
ReportedBy: Jeremy.Nix@sfsltd.com
Basically, the getFooter() method of HtmlLayout is never being called, so
these html tags are never closed. I did find that the finalize() method of
the WriterAppender is suppose to call getFooter(), but this method was never
called during my testing (since Garbage Collection on exit is at the jvm's
discression, and forcing GC is not recommended). I noticed that the
SMTPAppender.sendBuffer() calls the getHeader(), formatContent(), and getFooter
() all in sequence so that the Html would be well-formed, so maybe similar
logic needs to occur for the other appenders. The appender I was trying to
get this functionality was the DailyRollingFileAppender, which essentially
means the WriterAppender.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org