You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Divakar Satyanarayan <Di...@mascotsystems.com> on 2002/10/07 16:31:39 UTC

RE: How to change struts log level when using it with Tomcat 4.1. x?

Look at the configuration you can do in web.xml file I think u can set the
debug level there 

Regards,
Divakar

> -----Original Message-----
> From:	Keith Cheng [SMTP:mrklc@yahoo.com]
> Sent:	Monday, October 07, 2002 7:52 PM
> To:	struts-user@jakarta.apache.org
> Subject:	How to change struts log level when using it with Tomcat
> 4.1.x?
> 
> Hi all,
> 
> As far as I know, the default log level of struts is INFO, how can I 
> change it to other level such as DEBUG? I am using struts 1.1b2 with 
> Tomcat 4.1.10.
> 
> Thanks!
> 
> Regards,
> 
> -- Keith Cheng
> 
> 乞丐王子,細路,好心分手,跅跅步哈姆太郎...
> 越800首至新至Hit手機鈴聲!
> Over 800 latest ringtones, only on Yahoo!
> 
> 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at Mailadmin@mascotsystems.com Before opening attachments,
please scan for viruses. 



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


Re: How to change struts log level when using it with Tomcat 4.1. x?

Posted by Eddie Bush <ek...@swbell.net>.
<buzz/> guess again ;-) Nowadays, since commons logging is used, that
setting in web.xml is for backward compatability - and I don't think it
does *anything*.

I gather you're trying to get some more detail? Seems to me you may be
able to create "commons-logging.properties" in your top-level classes
directory, and specify something like:
org.apache.struts=DEBUG

I haven't attempted to configure just commons logging though. If you're
either using Log4J or you're under JDK1.4 (and using the JDK 1.4
logger), you can mention the package (you can get as fine-grained as to
specify a given class) in a different logging config file
(log4j.properties for log4j and ... you probably don't want to use the
default one under JDK1.4 - hit Sun's site to see how to use a different
file).

Of course, you could always take the "easy" way out and just hack the
source ;-) (if you think learning to configure logging is too big a
pain!) but I'd figure out how to control it with your logging properties
- it's a lot fast/easier/dependable ;-)

Divakar Satyanarayan wrote:

>Look at the configuration you can do in web.xml file I think u can set the
>debug level there 
>
>Regards,
>Divakar
>
>>-----Original Message-----
>>From:	Keith Cheng [SMTP:mrklc@yahoo.com]
>>Sent:	Monday, October 07, 2002 7:52 PM
>>To:	struts-user@jakarta.apache.org
>>Subject:	How to change struts log level when using it with Tomcat
>>4.1.x?
>>
>>Hi all,
>>
>>As far as I know, the default log level of struts is INFO, how can I 
>>change it to other level such as DEBUG? I am using struts 1.1b2 with 
>>Tomcat 4.1.10.
>>
>>Thanks!
>>
>>Regards,
>>
>>-- Keith Cheng
>>

-- 
Eddie Bush




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