logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Avner BenHanoch" <av...@kinor.com>
Subject Re: Layout.getFooter() is never called
Date Mon, 26 May 2003 14:44:41 GMT
Well, I found myself that it is an open bug in log4j.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11446
changing log4j source as described their seems to work.

----- Original Message -----
From: "Avner BenHanoch" <avner@kinor.com>
To: "'Log4J Users List'" <log4j-user@jakarta.apache.org>
Sent: Monday, May 26, 2003 12:02 PM
Subject: Layout.getFooter() is never called


> Among other things I need to write the # of records in each of my log
files.
>
> I created my custom Layout class (sub class of SimpleLayout) and
implemented
> the methods getHeader() and getFooter().  Then, I attached my Layout to a
> RollingFileAppender.
> Running the application shows that 'getFooter' is never called while
> 'getHeader' is called fine.
>
> Trying to use HTMLLayout (that has built-in implementation for those
> methods) showed me that also there, only 'getHeader' is called and not
> 'getFooter'.
>
> Checking deeper in debugger showed that 'WriterAppender.writeFooter' is
> never called while 'WriterAppender.writeHeader' is called fine.
>
> Can someone please help me with any idea?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message