You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by co...@jakarta.apache.org on 2004/07/15 06:35:50 UTC
[Jakarta Commons Wiki] Updated: Digester/FAQ
Date: 2004-07-14T21:35:49
Editor: SimonKitching <si...@ecnetwork.co.nz>
Wiki: Jakarta Commons Wiki
Page: Digester/FAQ
URL: http://wiki.apache.org/jakarta-commons/Digester/FAQ
add entry about enabling debugging output for digester
Change Log:
------------------------------------------------------------------------------
@@ -72,3 +72,18 @@
and !RulesBase classes are not supposed to be modified by the parsing, ie are
"stateless" with respect to the sax parsing stage and so are pretty safe to reuse.
+=== How do I enable debugging output for Digester? ===
+
+Digester uses the commons-logging package. Commons-logging can be configured in
+many different ways, but the simplest mechanism is to run Java with the following options:
+{{{
+ java -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog \
+ -Dorg.apache.commons.logging.simplelog.defaultlog=debug \
+ your.main.class.name
+}}}
+
+An alternative is to ensure that log4j.jar is in the classpath, then create a log4j.xml or log4j.properties file
+with the appropriate logging categories enabled, and place that configuration file in a directory which is in
+the classpath. See http://logging.apache.org/log4j/docs for more information on log4j.
+
+For more options, see the commons-logging project documentation.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org