I got it. There was an error in my log4j property file.

N.B. I still does not understand the struts debug and detail init parameter,
what it does and how.

Thanks you.

-----Message d'origine-----
De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Envoyé : mardi 26 novembre 2002 19:49
À : Struts Users Mailing List
Objet : Re: setting debug level for digester, sax, beanUtils...



On Tue, 26 Nov 2002 [EMAIL PROTECTED] wrote:

> Date: Tue, 26 Nov 2002 16:05:46 -0500
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> 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.
>

In 1.1, Struts and all the commons libraries it employes use
commons-logging as an abstraction to the underlying logging system -- in
turn, this allows you to use a variety of logging implementations such as
Log4J, JDK 1.4 logging, or a simple write-to-System.err default
implementation.  The actual configuration of the logging is done with the
configuration file for your logging mechanism (for example, to set up JDK
1.4 logging you edit <$JAVA_HOME/jre/lib/logging.properties>.

To configure *what* gets logged, the important issue is to understand the
default log name conventions of Apache code (typically the fully qualified
class name of the corresponding class).  Also, the typical logging
configuraiton file is hierarchical -- so that you can say things like this
to set the usual Struts logging levels to INFO, but get detailed debug
info from RequestProcessor (uses JDK 1.4 syntax):

org.apache.struts.level =INFO
org.apache.struts.action.RequestProcessor.level = DEBUG

Check the docs for configuring whichever logging implementation you want
to use for how to configure levels by logger name.  For the simple default
logger, it's in the package description at:

http://jakarta.apache.org/commons/logging/api/


> Does anyone know how to confugure the struts-config or/and web.xml?
>
> Thanks
> Stephan
>

Craig



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

Reply via email to