Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 30992 invoked from network); 8 Dec 2005 01:30:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Dec 2005 01:30:57 -0000 Received: (qmail 78450 invoked by uid 500); 8 Dec 2005 01:30:53 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 78387 invoked by uid 500); 8 Dec 2005 01:30:52 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 78376 invoked by uid 99); 8 Dec 2005 01:30:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2005 17:30:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of craigmcc@gmail.com designates 64.233.162.204 as permitted sender) Received: from [64.233.162.204] (HELO zproxy.gmail.com) (64.233.162.204) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2005 17:30:51 -0800 Received: by zproxy.gmail.com with SMTP id z6so530483nzd for ; Wed, 07 Dec 2005 17:30:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references; b=Fm1XEJ6IyHqNcG/NT0y1tW5UEnzu1pHOtqPKg57D0rNIdn55XEHObuYU1YD/QdQtDebwhTUIPfuMJ+vL3KRDis5Tm0WFFwR/dxNW5GUD1vJaZnjmG1+PAxMCjS3OZ4rq0WRLPA+R27yhWQ3UZHy1IMg4+LPYuChRyHnMtz/if1M= Received: by 10.64.10.17 with SMTP id 17mr61206qbj; Wed, 07 Dec 2005 17:30:30 -0800 (PST) Received: by 10.65.15.15 with HTTP; Wed, 7 Dec 2005 17:30:29 -0800 (PST) Message-ID: Date: Wed, 7 Dec 2005 17:30:29 -0800 From: Craig McClanahan Sender: craigmcc@gmail.com To: Struts Developers List , husted@apache.org Subject: Re: Logging in MailReader 1.3 In-Reply-To: <8b3ce3790512071459j58a17cd7n9513179f32aae1a7@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12071_4114623.1134005429560" References: <8b3ce3790512071459j58a17cd7n9513179f32aae1a7@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_12071_4114623.1134005429560 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 12/7/05, Ted Husted wrote: > > So, if I'm deploying Tomcat 5.5. and compiling MailReader under Java > 1.5, what do I need to do to adjust the logging level past "INFO". I don't know the details of how Tomcat 5.5 is configured (and don't have it on my laptop to check), but *if* you end up defaulting to the JDK logger, there is a gotcha you need to pay attention to when you configure it. This is done by editing $JDK_HOME/jre/lib/logging.properties and adding lines like: org.apache.struts.level =3D FINEST to get trace-level debugging from every Struts class. However, there is an additional uber-limit on the severities that go to the console log -- and the default limits it to INFO. Change java.util.logging.ConsoleHandler.level =3D INFO as well, to whatever the most detailed level you want is. Which begs the question: Do we still need so much logging in the > MailReader? It's much easy to debug a web application in an IDE these > days, and the logging statements tend to complicate the design. I > wouldn't want to hedge on error handling (MailReader could actually > use some more), but I don't know if the logging statements help or > hinder at this point. > > To demonstrate logging, we could also do an example in the Cookbook > application instead, and maybe show using different logging levels and > such. +1 on keeping logging in mailreader if it is *not* in the cookbook, +0 if i= t is. I agree with you that logging should not lead you to scrimp on robust error handling, but it's still a useful technique for the non-IDE user (as Frank points out). In addition, there's a whole different logging notion o= f tracking business transactions (instead of debugging messages) that we migh= t want to illustrate instead, either here and/or elsewhere. Craig -Ted. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > > ------=_Part_12071_4114623.1134005429560--