Never put Log4j in jdk/jre/ext. You can put it in common/lib, but then also put it in the WEB-INF/lib of your webapp unless you are using a custom repository selector. Otherwise, Log4j uses a single logger repository (the default one) and every app that performs configuration will override the configuration of previously configured apps. Putting it in WEB-INF/lib will make it so you have a distinct logging environment and only that app will be configured in the default logger repository.
Jake Quoting Abid Ali Teepo <[EMAIL PROTECTED]>: > Hi > > As far as i know, i only have one logger.... and i have not put log4j jar in > the common/lib i had it in my jdk/jre/ext > > I tried to move it to common/lib now, but i still get the same output. So i'm > getting tomcat debug info even though i never asked for it .... > > Is there any way i can override it ? > > Abid > > -----Original Message----- > From: Johann Uhrmann [mailto:[EMAIL PROTECTED] > Sent: 16. juli 2003 17:25 > To: Tomcat Users List > Subject: Re: Tomcat with log4j output > > > Abid Ali Teepo wrote: > > Hi > > > > I just added a servlet with logging done by log4j, and it apparently works > ok. > > But suddenly tomcat has started giving a lot of debug information. The > thing is that even though i have set the level to info, it gives me tomcat > debug. > > > > Is there a setting or something i have awakened by log4j enabling my > servlet ? > > Where and how can i change this behaviour ? > > Are You sure that the logger You set to info is also the logger You > write to? > > If You use a "control servlet" in a different web application to change > log levels, there is a chance that You have two different instances > of Your logger. > > Do You deploy the log4j-lib with the web application or do You have it > in common/lib? > (Putting it in common/lib might solve Your problem) > > Kind regards, > > Hans > > > -- > Johann Uhrmann > xpecto AG | Lindenstrasse 81 | D-84030 Ergolding > Telefon: 0700 xpecto 00 (0700 973286 00) > Telefax: 0700 xpecto 10 (0700 973286 10) > Internet: http://www.xpecto.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]