You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Keith Cheng <mr...@yahoo.com> on 2002/10/01 08:18:23 UTC

logging level in struts

Hi,

I am using struts 1.1b2 inside Tomcat 4.1.10 and wondering how can I change the logging level?  It seems that the default level is [INFO], right?  Any hints?

Thanks!

Cheers,

KC



乞丐王子,細路,好心分手,跅跅步哈姆太郎...
越800首至新至Hit手機鈴聲!
Over 800 latest ringtones, only on Yahoo!

Re: logging level in struts

Posted by Danny Mui <da...@muibros.com>.
It really depends on which logging package you use. The commons logging
package will use JDK 1.4 logging by default and others if configured to
do so.

I use the Log4J package by dropping the jar files into the WEB-INF/lib
directory. Copy log4j.properties to WEB-INF/classes and look up the
documentation for log4j :). But if you're inpatient and want struts
(everything) to shutup, you can add the following to the properties file.

log4j.rootCategory=WARN

That means anything below WARN will be ignored. You can configure it to
make struts only stuff be quiet, but that is an exercise I leave for you!

danny


Keith Cheng wrote:

>Hi,
>
>I am using struts 1.1b2 inside Tomcat 4.1.10 and wondering how can I change the logging level?  It seems that the default level is [INFO], right?  Any hints?
>
>Thanks!
>
>Cheers,
>
>KC
>
>
>
>乞丐王子,細路,好心分手,跅跅步哈姆太郎...
>越800首至新至Hit手機鈴聲!
>Over 800 latest ringtones, only on Yahoo!
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>