logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21794] New: - HtmlLayout not closing table, body, and html tags on close
Date Tue, 22 Jul 2003 12:19:01 GMT
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


Mime
View raw message