Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 88173 invoked from network); 6 Sep 2004 05:32:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Sep 2004 05:32:02 -0000 Received: (qmail 83801 invoked by uid 500); 6 Sep 2004 05:31:27 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 83773 invoked by uid 500); 6 Sep 2004 05:31:26 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 83760 invoked by uid 99); 6 Sep 2004 05:31:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of pburleson@gmail.com designates 64.233.170.199 as permitted sender) Received: from [64.233.170.199] (HELO mproxy.gmail.com) (64.233.170.199) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 05 Sep 2004 22:31:22 -0700 Received: by mproxy.gmail.com with SMTP id 78so139999rnl for ; Sun, 05 Sep 2004 22:31:20 -0700 (PDT) Received: by 10.38.78.70 with SMTP id a70mr1239628rnb; Sun, 05 Sep 2004 22:31:20 -0700 (PDT) Received: by 10.38.78.12 with HTTP; Sun, 5 Sep 2004 22:31:20 -0700 (PDT) Message-ID: Date: Mon, 6 Sep 2004 01:31:20 -0400 From: Patrick Burleson Reply-To: Patrick Burleson To: Tomcat Users List Subject: Re: Log4J in Tomcat 5.0...I don't believe the FAQ In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks for that, but that's not exactly what I am asking for. I know that putting log4j into my webapp will work. What I want to do is to have Tomcat *itself* use log4j for logging statements. The messages I linked to say that it's very simple to do. Yet following the instructions, it doesn't work here. Thanks, Patrick On Sun, 5 Sep 2004 21:01:21 +0200, Pedro Nevado wrote: > In case it helps, this is what I do with Tomcat 5.0.28 (Win 2000 without > installer, j2sdk1.4.2_04): > - I do not put log4j.jar in commom/lib, but in the WEB-INF/lib of my web > app. > - I put log4j.xml (equivalent to log4j.properties) and > commons-logging.properties in WEB-INF/classes of my app. > The archive commons-logging.properties contains: > > org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger > > I use the commons-logging api in my application classes. > > Regards. > Pedro Nevado > > -----Mensaje original----- > De: Patrick Burleson [mailto:pburleson@gmail.com] > Enviado el: domingo, 05 de septiembre de 2004 17:05 > Para: tomcat-user@jakarta.apache.org > Asunto: Log4J in Tomcat 5.0...I don't believe the FAQ > > > > > So I'm trying to get Tomcat 5.0 to use Log4J for its log output > formatted to my liking. Started searching and found a link to this > message in the Tomcat FAQ that says it has the solution. > > http://marc.theaimsgroup.com/?l=tomcat-user&m=108330970225012&w=2 > > Well, after performing what seem like simple steps (probably the steps > I would have done anyway), still no logging through Log4J. > > Did I miss some magically step number 4 or even step 0? I copied > log4j-1.2.8.jar to /commons/lib and put the example > log4j.properties in /commons/classes at DEBUG level and > still only got the original format with only INFO level stuff printing > out. > > I tried with the following versions of Tomcat on Windows XP with JDK > 1.4.2_05 and JDK 5.0-RC: > > 5.0.27 Windows Installer > 5.0.27 Zip file > 5.0.19 Windows Installer > 5.0.19 Zip File > > I tried the last two since they were the version mention in the mail > message. I tried the zips thinking maybe there was something > "different" about the windows installers. > > Later in that thread it is mentioned by Jacob Kjome in message > http://marc.theaimsgroup.com/?l=tomcat-user&m=108333554729166&w=2 : > > " I've pointed out almost these exact instructions many times before > and people keep asking or say it doesn't work (it does)." > > I just don't believe it. There has to be something I missed...but > that's hard to do when there's only 3 steps, one of them being > "Download Log4J". > > Any ideas? > > Thanks, > Patrick > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org