Return-Path: Delivered-To: apmail-jakarta-log4j-dev-archive@www.apache.org Received: (qmail 56236 invoked from network); 9 Dec 2003 16:51:25 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Dec 2003 16:51:25 -0000 Received: (qmail 36694 invoked by uid 500); 9 Dec 2003 16:51:17 -0000 Delivered-To: apmail-jakarta-log4j-dev-archive@jakarta.apache.org Received: (qmail 36671 invoked by uid 500); 9 Dec 2003 16:51:17 -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 36658 invoked from network); 9 Dec 2003 16:51:17 -0000 Received: from unknown (HELO mustang.mpi.com) (63.244.250.132) by daedalus.apache.org with SMTP; 9 Dec 2003 16:51:17 -0000 Received: from lightning.mpi.com (lightning.mpi.com [63.244.252.11]) by mustang.mpi.com (Switch-2.2.8/Switch-2.2.8) with ESMTP id hB9Gn0k20676 for ; Tue, 9 Dec 2003 11:49:00 -0500 (EST) Received: from US-VS1.corp.mpi.com (us-be1.corp.mpi.com [63.244.252.30]) by lightning.mpi.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id hB9Gp0Fd016753 for ; Tue, 9 Dec 2003 11:51:13 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [ThrowableClassMatchFilter] RE: Sandbox problems Date: Tue, 9 Dec 2003 11:50:27 -0500 Message-ID: <9C5166762F311146951505C6790A9CF8013DF826@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ThrowableClassMatchFilter] RE: Sandbox problems Thread-Index: AcO+c1EBSRoRmckPR6K+0e7RiqVzFgAATNQQ From: "Shapira, Yoav" To: "Log4J Developers List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Howdy, Probably ;) I don't mind junking this filter. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Ceki G=FClc=FC [mailto:ceki@qos.ch] >Sent: Tuesday, December 09, 2003 11:42 AM >To: Log4J Developers List >Subject: RE: [ThrowableClassMatchFilter] RE: Sandbox problems > > >Given that the throwable instance is no longer available, I think it = will >be far more efficient to add the check in your code instead of relyin= g on a >filter bound to be slow. > >At 11:25 AM 12/9/2003 -0500, Shapira, Yoav wrote: > >>Howdy, >>I don't use it myself at this point because it's not part of the cor= e >>distribution. The use-case I have in mind for this filter is that o= f >>expected errors that you don't want to log. >> >>Specifically, we have a math library that we ask to calculate all so= rts of >>functions for us on sets of data. This library throws some of its o= wn >>exceptions (InconsistentDataException, etc.), but we access it throu= gh a >>fa=E7ade that throws Exception, and in addition the library throws N= PEs >>sometimes, so our code is like >>try { >> ... call fa=E7ade method ... >>} catch (Exception e) { >> ... log exception ... >>} >> >>If the exception is one from the math library, I don't want it logge= d. So >>I would configure a ThrowableClassMatchFilter with the math library'= s >>exception class. I'd prefer this to adding the math libraries' thro= wable >>class names to my own code. >> >>That's it ;) >> >>Yoav Shapira >>Millennium ChemInformatics > >-- >Ceki G=FClc=FC > > For log4j documentation consider "The complete log4j manual" > ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp > > > >---------------------------------------------------------------------= >To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: log4j-dev-help@jakarta.apache.org This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-dev-help@jakarta.apache.org