DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Commons-logging - SimpleLog Configuration
Configure commons-logging to use the SimpleLog implementation that it includes and configure the SimpleLog. Useful e.g. for running unit tests.
commons-logging.properties:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog #org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger #org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger #org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
simplelog.properties:
## SimpleLog instance settings. org.apache.commons.logging.simplelog.defaultlog=debug org.apache.commons.logging.simplelog.showlogname=true org.apache.commons.logging.simplelog.showdatetime=true org.apache.commons.logging.simplelog.dateTimeFormat=HH:mm:ss:SSS zzz yyyy/MM/dd ## Configure logging levels #org.apache.commons.logging.simplelog.log.org.exolab.castor=INFO #org.apache.commons.logging.simplelog.log.org.jmock=DEBUG






