Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 30301 invoked from network); 11 May 2006 15:39:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2006 15:39:12 -0000 Received: (qmail 84204 invoked by uid 500); 11 May 2006 15:39:08 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 84170 invoked by uid 500); 11 May 2006 15:39:08 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 84153 invoked by uid 99); 11 May 2006 15:39:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 08:39:08 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.112.81.7] (HELO mail.ergonomics.ch) (195.112.81.7) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 08:39:07 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 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: why my logger doesn't get executed?? Date: Thu, 11 May 2006 17:39:54 +0200 Message-ID: <3FE38194C8A3334A959B64B7D9A1E27B838D90@plejaden.seychelles.ergo> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: why my logger doesn't get executed?? Thread-Index: AcZ1Dyrw1wSBiv/tR12CAkbtT1Wf2wAAcGqQ From: "Bender Heri" To: "Log4J Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N How does your config file look? Heri > -----Original Message----- > From: Zheng Wen Zhe [mailto:zwenzhe@espatial.com] > Sent: Thursday, May 11, 2006 5:16 PM > To: 'Log4J Users List' > Subject: why my logger doesn't get executed?? >=20 >=20 > Hi all, >=20 > This is my A Java class with logger resides. >=20 > My question is why those loggers don't execute when this=20 > class is called? >=20 > =20 >=20 > Cheers, >=20 > Jason >=20 > ************************************ >=20 > import org.apache.log4j.Logger; >=20 > ...... >=20 > public class LoginAction extends Action { >=20 > static Logger logger =3D Logger.getLogger(LoginAction.class); >=20 > =20 >=20 > public ActionForward execute( >=20 > ActionMapping mapping, >=20 > ActionForm form, >=20 > HttpServletRequest request, >=20 > HttpServletResponse response) { >=20 > LoginForm loginForm =3D (LoginForm) form; >=20 > // TODO Auto-generated method stub >=20 > =20 >=20 > logger.debug("Here is some DEBUG"); >=20 > logger.info("Here is some INFO"); >=20 > logger.warn("Here is some WARN"); >=20 > logger.error("Here is some ERROR"); >=20 > logger.fatal("Here is some FATAL"); >=20 > =20 >=20 > return mapping.findForward("success"); >=20 > } >=20 > } >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org