You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Joe Mun <yc...@sbcglobal.net> on 2006/03/30 22:06:39 UTC

Tomcat Logging

Is it possible to turn off Catalina's Commons logging
(from org.apache.catalina.*) in Tomcat 5.0 without
changing the debug level in log4j?

Problem is I use log4j/commons for my application and
don't need to bother with the tomcat logs. 
Unfortunately, Tomcat spits out a TON of DEBUG level
messages.  Therefore making it difficult to use the
DEBUG level in my app.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Logging

Posted by Boris Unckel <bo...@gmx.net>.
Hello Joe,

Joe Mun wrote:
> Is it possible to turn off Catalina's Commons logging
> (from org.apache.catalina.*) in Tomcat 5.0 without
> changing the debug level in log4j?
>
> Problem is I use log4j/commons for my application and
> don't need to bother with the tomcat logs. 
> Unfortunately, Tomcat spits out a TON of DEBUG level
> messages.  Therefore making it difficult to use the
> DEBUG level in my app.
>
>   
you have to separate server configuration log and application log. This 
can be achieved by putting
needed JARs (WEB-INF/lib) and log4j.properties (WEB-INF/classes) at 
webapp level.
Have a look at
http://jakarta.apache.org/commons/logging/guide.html
http://tomcat.apache.org/faq/logging.html
http://tomcat.apache.org/tomcat-5.0-doc/class-loader-howto.html

Regards
Boris


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Logging

Posted by Martin Gainty <mg...@hotmail.com>.
Good Morning Joe-

Im going to take a guess at <context debug=0 in server.xml???

Anyone else ???
Martin--

----- Original Message ----- 
From: "Joe Mun" <yc...@sbcglobal.net>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Thursday, March 30, 2006 3:06 PM
Subject: Tomcat Logging


> Is it possible to turn off Catalina's Commons logging
> (from org.apache.catalina.*) in Tomcat 5.0 without
> changing the debug level in log4j?
> 
> Problem is I use log4j/commons for my application and
> don't need to bother with the tomcat logs. 
> Unfortunately, Tomcat spits out a TON of DEBUG level
> messages.  Therefore making it difficult to use the
> DEBUG level in my app.
> 
> Thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
>