Return-Path: Delivered-To: apmail-jakarta-log4j-dev-archive@apache.org Received: (qmail 27598 invoked from network); 22 Jul 2003 21:56:34 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 22 Jul 2003 21:56:34 -0000 Received: (qmail 12290 invoked by uid 97); 22 Jul 2003 21:59:13 -0000 Delivered-To: qmlist-jakarta-archive-log4j-dev@nagoya.betaversion.org Received: (qmail 12283 invoked from network); 22 Jul 2003 21:59:13 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 22 Jul 2003 21:59:13 -0000 Received: (qmail 27350 invoked by uid 500); 22 Jul 2003 21:56:33 -0000 Mailing-List: contact log4j-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@jakarta.apache.org Received: (qmail 27335 invoked from network); 22 Jul 2003 21:56:32 -0000 Received: from mole.anstat.com (HELO ike.local.anstat.com.au) (202.92.123.11) by daedalus.apache.org with SMTP; 22 Jul 2003 21:56:32 -0000 Received: by ike.local.anstat.com.au with Internet Mail Service (5.5.2655.55) id <3H6RP1SP>; Wed, 23 Jul 2003 07:56:38 +1000 Message-ID: <7395B46C07F8D51182AE000629570CC4B2E37E@ike.local.anstat.com.au> From: Paul Smith To: 'Log4J Developers List' Subject: RE: HtmlLayout not closing the table Date: Wed, 23 Jul 2003 07:56:32 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jeremy and Ceki, Looking at the code, the close() method seems to do what I thought it = should do. Jeremy, could you describe your setup, and what would (or should) = be triggering a closing of the appender? =20 Is it because the VM is exiting without a proper Log4j shutdown and = relying on the finalize being called by the vm (which frankly I have less and = less faith in finalize in VM's, they should rename the method crossYourFingersFinalize()). This does make me ask myself whether Log4j could add itself as a = shutdown hook, but I think that is 1.3 specific isn't it? If so, perhaps this = would be a candidate for some sort of dynamic/reflective magic on detection = of 1.3 to use this feature for tidying up since it's pretty useful and avoid a compile time dependancy on 1.3 cheers, Paul Smith > -----Original Message----- > From: Ceki G=FClc=FC [mailto:ceki@qos.ch] > Sent: Tuesday, 22 July 2003 8:49 AM > To: Log4J Developers List > Subject: Re: HtmlLayout not closing the table >=20 >=20 >=20 > This problem has been mentioned before. I think it is also=20 > reported as a=20 > bug in bugzilla (http://nagoya.apache.org/bugzilla/) but I=20 > could not find=20 > the report. >=20 > You might want to file a new report. >=20 > At 04:19 PM 7/21/2003 -0400, you wrote: >=20 > >I've downloaded the latest source from apache to enhance the=20 > HtmlLayout to=20 > >display the time field as the current date instead of the=20 > time elapsed=20 > >since the LayoutManager had been loaded. When inside the code and=20 > >testing, I found that the getFooter method was never being=20 > called, thus=20 > >never closing the body, table, html tags. Has anyone come across=20 > >this? Does someone have a good idea on how to resolve this?=20 > I'm new to=20 > >this code, so I've been hunting around some and did find that the=20 > >finalize() method of the WriterAppender is suppose to call=20 > getFooter(),=20 > >but this method is never called. > > > >_________________ > >Jeremy Nix > >Senior Application Developer > >Southwest Financial Ltd. > >Jeremy.Nix@sfsltd.com > >(513) 621-6699 ext 1158 >=20 > -- > Ceki For log4j documentation consider "The complete log4j manual" > ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: log4j-dev-help@jakarta.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-dev-help@jakarta.apache.org