Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 45300 invoked from network); 28 Mar 2006 02:06:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2006 02:06:12 -0000 Received: (qmail 52462 invoked by uid 500); 28 Mar 2006 02:06:07 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 52450 invoked by uid 500); 28 Mar 2006 02:06:07 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 52439 invoked by uid 99); 28 Mar 2006 02:06:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 18:06:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of DHoffer@xrite.com designates 207.242.38.10 as permitted sender) Received: from [207.242.38.10] (HELO [207.242.38.2]) (207.242.38.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 18:06:06 -0800 Received: from xrmandc1.manchester.xrite.com by [207.242.38.2] via smtpd (for asf.osuosl.org [140.211.166.49]) with ESMTP; Mon, 27 Mar 2006 21:05:45 -0500 Received: (private information removed) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6520C.1FACAB58" Subject: [logging] How to get log4j to work with commons-logging in web service app? Date: Mon, 27 Mar 2006 21:05:51 -0500 Message-ID: <31A79A99946C084AA0F433FDF70639D1127A74B9@XRMAIL.XRITE.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [logging] How to get log4j to work with commons-logging in web service app? Thread-Index: AcZSDCN7Oodqo8bISKOKBc9FZ9nwxA== From: "Dave Hoffer" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C6520C.1FACAB58 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm not sure if this is a commons-logging or log4j issue but my problem is that... =20 I have an application (local web service) that uses Jetty and AXIS. We just started using commons-logging and we want to configure it to use log4j. =20 Form the online docs I gathered that to configure commons-logging I really just had to make sure that log4j was in my classpath; which I did and through our IDE debugger and I see the following message which, I think, means that commons-logging found log4j. (Since this is through the IDE it is the simple case, i.e. no Jetty and AXIS yet.=20 =20 log4j:WARN No appenders could be found for logger (Logger_Name). log4j:WARN Please initialize the log4j system properly. =20 However, when I run the application (fire up Jetty/AXIS/App) I get NO logging. I don't know if this is a commons-logging or log4j issue at runtime as I see nothing. =20 =20 Do I need any commons-logging property/config file? If so, where does it go? =20 I know I will need a log4j.properties file, where should this be located? I haven't used log4j much, but I think it has been found in the current directory before; now this is not working. I have also put it in the classpath with no success. =20 Any ideas? How can I debug to see where the failure is? =20 Thanks. =20 -Dave =20 =20 =20 ------_=_NextPart_001_01C6520C.1FACAB58--