Sometimes you want to customize logging level for given package in your application (to see tracing details for example). If you’re using commons-logging library the configuration file is called “commons-logging.properties” and it should be places somewhere on classpath.
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog priority=1
Then we can configure SimpleLog back-end just declared in simplelog.properties:
org.apache.commons.logging.simplelog.defaultlog=warn org.apache.commons.logging.simplelog.log.com.mycompany.package=debug
You place those two files on classpath, redeploy application and … NOTHING HAPPENS. Those files aren’t visible!



