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:[EMAIL PROTECTED]] Envoyé : mardi 26 novembre 2002 16:32 À : [EMAIL PROTECTED] 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: [EMAIL PROTECTED] FAX: 303-494-5395 - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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...
In your log4j XML config file: logger name=org.apache additivity=false level value=ERROR/ appender-ref ref=sameAppenderRefUsedByRoot/ /logger Quoting [EMAIL PROTECTED]: 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:[EMAIL PROTECTED]] Envoyé : mardi 26 novembre 2002 16:32 À : [EMAIL PROTECTED] 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: [EMAIL PROTECTED] FAX: 303-494-5395 - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE : setting debug level for digester, sax, beanUtils...
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]
Re: RE : setting debug level for digester, sax, beanUtils...
On Wed, 27 Nov 2002 [EMAIL PROTECTED] wrote: Date: Wed, 27 Nov 2002 08:59:57 -0500 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE : setting debug level for digester, sax, beanUtils... 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. In Struts 1.1, the debug and detail parameters are deprecated -- they are leftovers from the way that Struts 1.0 did logging. Thanks you. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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]