On Tue, 27 Aug 2002, Brandon Goodin wrote:

> Date: Tue, 27 Aug 2002 16:29:18 -0600
> From: Brandon Goodin <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: 2000 lbs of Debug logs
>
> I use log4j for my logging. When I use struts I get a ton of DEBUG Code
> going to my Log File on startup. I have set all debug to 0 in the web xml
> for the Action Servlet declaration and it still happens. Is there anyway i
> can specify in the log4j config file to prevent this from happening apart
> from setting my root logger to INFO?
>

In Struts 1.1, the "debug" init parameter is totally ignored.  Everything
is configured using the standard Log4J configuration properties (since you
are using Log4J).

The important thing to understand, in order to make this work, is what
logger names the Struts components use.  The convention for Struts (and
the commons packages) is to use the fully qualified class name of the
class originating the log messages.  Thus, you can individually tweak the
log volume from each class to what you need, or turn off everything by
setting the log level for "org.apache.struts" to something like ERROR.
(In Log4J, as in JDK 1.4 logging, log levels are inheritable.)

> Brandon
>

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to