You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ro...@hydro.qc.ca on 2002/11/27 14:48:33 UTC
RE : setting debug level for digester, sax, beanUtils...
I am using log4j for logging. It works fine. I do not want to see the
logging information coming from Struts and any other libraries it uses.
Thanks
-----Message d'origine-----
De : CraigFournier [mailto:CraigFournier@attbi.com]
Envoyé : mardi 26 novembre 2002 16:32
À : Roy.Stephan@hydro.qc.ca
Objet : Re: setting debug level for digester, sax, beanUtils...
What version of JDK are you using? If you are using JDK 1.4, it has logging
within it.
Look in <your_jdk_directory>/jre/lib/logging.properties.
If you are using another version of JDK then you must use a logging program
like
log4j and read the init file at startup time to control logging.
I'm am not sure what the default logging behavior is.
Hope that helps a little.
Craig
--------------------------------------------------------------------
Craig Fournier
Phone: 303-494-7847
Email: CraigFournier@attbi.com
FAX: 303-494-5395
----- Original Message -----
From: <Ro...@hydro.qc.ca>
To: <st...@jakarta.apache.org>
Sent: Tuesday, November 26, 2002 2:05 PM
Subject: setting debug level for digester, sax, beanUtils...
>
> Hi,
>
> I am trying to turn off logging for Struts and sub-components while
keeping
> logging on for my own code. I have put the debug and detail init parameter
> to 0 in web.xml but I receive debug messages from digester, sax, beanUtils
> and others.
>
> Does anyone know how to confugure the struts-config or/and web.xml?
>
> Thanks
> Stephan
>
Re: setting debug level for digester, sax, beanUtils...
Posted by Kris Schneider <kr...@dotech.com>.
In your log4j XML config file:
<logger name="org.apache" additivity="false">
<level value="ERROR"/>
<appender-ref ref="sameAppenderRefUsedByRoot"/>
</logger>
Quoting Roy.Stephan@hydro.qc.ca:
> I am using log4j for logging. It works fine. I do not want to see the
> logging information coming from Struts and any other libraries it uses.
>
> Thanks
>
> -----Message d'origine-----
> De : CraigFournier [mailto:CraigFournier@attbi.com]
> Envoyé : mardi 26 novembre 2002 16:32
> À : Roy.Stephan@hydro.qc.ca
> Objet : Re: setting debug level for digester, sax, beanUtils...
>
> What version of JDK are you using? If you are using JDK 1.4, it has
> logging
> within it.
> Look in <your_jdk_directory>/jre/lib/logging.properties.
>
> If you are using another version of JDK then you must use a logging program
> like
> log4j and read the init file at startup time to control logging.
>
> I'm am not sure what the default logging behavior is.
>
> Hope that helps a little.
>
> Craig
>
>
>
> --------------------------------------------------------------------
> Craig Fournier
> Phone: 303-494-7847
> Email: CraigFournier@attbi.com
> FAX: 303-494-5395
>
>
>
> ----- Original Message -----
> From: <Ro...@hydro.qc.ca>
> To: <st...@jakarta.apache.org>
> Sent: Tuesday, November 26, 2002 2:05 PM
> Subject: setting debug level for digester, sax, beanUtils...
>
>
> >
> > Hi,
> >
> > I am trying to turn off logging for Struts and sub-components while
> keeping
> > logging on for my own code. I have put the debug and detail init
> parameter
> > to 0 in web.xml but I receive debug messages from digester, sax,
> beanUtils
> > and others.
> >
> > Does anyone know how to confugure the struts-config or/and web.xml?
> >
> > Thanks
> > Stephan
> >
>
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>