Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 18931 invoked from network); 12 Dec 2003 03:16:38 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Dec 2003 03:16:38 -0000 Received: (qmail 78243 invoked by uid 500); 12 Dec 2003 03:15:59 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 78223 invoked by uid 500); 12 Dec 2003 03:15:59 -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 78210 invoked from network); 12 Dec 2003 03:15:59 -0000 Received: from unknown (HELO rwcrmhc11.comcast.net) (204.127.198.35) by daedalus.apache.org with SMTP; 12 Dec 2003 03:15:59 -0000 Received: from nicki.visi.com (c-24-118-224-155.mn.client2.attbi.com[24.118.224.155]) by comcast.net (rwcrmhc11) with SMTP id <2003121203160701300bpbike>; Fri, 12 Dec 2003 03:16:07 +0000 Message-Id: <5.2.1.1.0.20031211211159.02c065b0@shell.visi.com> X-Sender: hoju@shell.visi.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Thu, 11 Dec 2003 21:16:04 -0600 To: "Tomcat Users List" From: Jacob Kjome Subject: Re: [WORKAROUND] Re: VERY weird problem with commons-logging and Tomcat5 In-Reply-To: <3FD9007B.6010402@gmx.net> References: <3FD8D6DB.90607@gmx.net> <3FD8D6DB.90607@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You can also use a repository selector. BTW, do you have log4j.jar *and* commons-logging.jar (not commons-logging-api.jar) in WEB-INF/lib? If not, put them there and try this scenario again. A repository selector should not be necessary in this situation. However, I always use one as it guarantees separate logger repositories for each application (based on JNDI namespace) with no chance of stepping on each other whether or not I have log4j.jar in WEB-INF/lib or a parent classloader. Jake At 12:40 AM 12/12/2003 +0100, you wrote: >Hi! > >I still do not know what is causing this behavior, but I found a >workaround in case anyone else stumbles upon this problem: > >In my log4j.properties I left the log4j.rootCategory property alone and >only set log4j.category.package.name.of.my.classes properties for each >package in my webapp to DEBUG. >This way I only get the DEBUG output of my own classes and not ALL debug >messages generated by the container. >I still wonder why my log4j.properties in /WEB-INF/classes should >reconfigure the container's whole logging mechanism. Either this is a >major bug or tomcat4's doing it right was one. > >'Till later > > Phil > >Philipp Taprogge wrote: > >>Hi! >>I have a very disgusting problem here... I am developing a webapp which >>uses commons-logging and log4j. >>All I do is use the commons' Log and LogFactory in my application and >>place a log4j.properties file in my WEB-INF/classes. >>This property file looks like this (w/out the CR in the middle line of >>course): >>log4j.rootCategory=DEBUG, warthoglog >>log4j.appender.warthoglog=org.apache.log4j.RollingFileAppender >>log4j.appender.warthoglog.layout=org.apache.log4j.PatternLayout >>log4j.appender.warthoglog.layout.ConversionPattern=%d{ISO8601} >> [%-15C{1}] %-5p - %m%n >>log4j.appender.warthoglog.File=${catalina.home}/logs/warthog.log >>log4j.appender.warthoglog.MaxFileSize=2048KB >>log4j.appender.warthoglog.MaxBackupIndex=20 >>log4j.appender.warthoglog.Append=true >>This works fine, except that I get not only my application's log messages >>but _ALL_ tomcat debug logging in this file, which firstly slows down my >>machine (no wonder) and secondly grows the logfile to a few MBs just from >>startup. >>What the heck am I doing wrong here? This setup worked perfectly in the >>last tomcat4. >>Can anyone advice? >> Philipp Taprogge > > >-- >"I love deadlines, I love the whooshing noise they make as they go by" >- Douglas Adams > > >--------------------------------------------------------------------- >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