how to log digester with apache commons?
        Posted  
        
            by Bruce
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Bruce
        
        
        
        Published on 2010-05-04T22:05:58Z
        Indexed on 
            2010/05/04
            22:08 UTC
        
        
        Read the original article
        Hit count: 286
        
Hi all I'm having trouble getting digester to log anything. I'd be hugely grateful for any light anyone can shed.
In my code I'm doing this:
Digester digester = new Digester(); .. some digester set up stuff
// What on earth should go in here???? digester.setLogger(LogFactory.getLog("org.apache.commons.logging.Log"));
I have a commons-logging.properties file in my classpath as follows: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog org.apache.commons.logging.simplelog.log.org.apache.commons.digester.Digester=debug org.apache.commons.logging.simplelog.log.org.apache.commons.digester.Digester.sax=info
I just get no debug info at all..
Thanks for your help!
© Stack Overflow or respective owner