Date: 2004-07-14T21:35:49
   Editor: SimonKitching <[EMAIL PROTECTED]>
   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to