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]
RE: Tomcat with log4j output
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]
RE: Tomcat with log4j output
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]
RE: Tomcat with log4j output
How come it has to be both in common/libs and in the WEB-INF ? What will i be missing if i only put it in WEB-INF ? Abid -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:57 To: Tomcat Users List Subject: RE: Tomcat with log4j output 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat with log4j output
Quoting Abid Ali Teepo [EMAIL PROTECTED]: How come it has to be both in common/libs and in the WEB-INF ? What will i be missing if i only put it in WEB-INF ? Abid It isn't that is *has* to be in common/lib. You can have it only in WEB- INF/lib and be just fine. It *can* be in common/lib where it will be automagically used by commons-logging (the logging API that Tomcat uses) and if you were to use a custom repository selector, then you wouldn't need it in WEB- INF/lib at all because your app would be using the globally accessible log4j.jar but using a distinct logger repository for each application so that you wouldn't have to worry about different app's log4j configuration conflicting. Of course, as soon as an app depends on the default logger repository to be unique for itself, then you run into trouble, which is where the WEB-INF/lib idea will be far simpler to deal with. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:57 To: Tomcat Users List Subject: RE: Tomcat with log4j output 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] - 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]