Return-Path: Delivered-To: apmail-logging-general-archive@www.apache.org Received: (qmail 29891 invoked from network); 2 Jun 2006 02:41:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 02:41:37 -0000 Received: (qmail 9411 invoked by uid 500); 2 Jun 2006 02:41:36 -0000 Delivered-To: apmail-logging-general-archive@logging.apache.org Received: (qmail 9362 invoked by uid 500); 2 Jun 2006 02:41:36 -0000 Mailing-List: contact general-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Logging General" List-Id: Delivered-To: mailing list general@logging.apache.org Received: (qmail 9344 invoked by uid 99); 2 Jun 2006 02:41:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 19:41:36 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.148.227.151] (HELO rwcrmhc11.comcast.net) (216.148.227.151) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 19:41:35 -0700 Received: from [192.168.1.103] (c-66-41-240-199.hsd1.mn.comcast.net[66.41.240.199]) by comcast.net (rwcrmhc11) with ESMTP id <20060602024114m1100gniv5e>; Fri, 2 Jun 2006 02:41:14 +0000 Message-ID: <447FA548.2010401@comcast.net> Date: Thu, 01 Jun 2006 21:41:12 -0500 From: MC Moisei User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: general@logging.apache.org Subject: Log4J Question Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Why error(Object,Throwable) show the stack and error(Throwable) doesn't ? import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; ... class EmailVerificationAction { private final static Log logger = LogFactory.getLog( EmailVerificationAction.class ); try { EmailService service = ( EmailService ) ServiceLocator.getService( "emailService" ); sent = service.sendMessage( null, to, subject, text, html, null ); } catch ( Exception e ) { logger.error( "Some Error", e );//shows stack trace logger.error( e );//doesn't show trace } }