On Fri, 2006-04-21 at 15:22 -0400, Frank W. Zammetti wrote: > Hi all, > > I seem to remember there being a way to configure JCL, when using > SimpleLog, to only log certain packages, but I forgot how, and Google is > failing me. I want to log messages only from those classes in my > application code, not those coming from Struts for instance. Point me in > the right direction? Thanks! >
http://jakarta.apache.org/commons/logging/commons-logging-1.0.4/docs/apidocs/org/apache/commons/logging/impl/SimpleLog.html java \ -Dorg.apache.commons.logging.simplelog.defaultlog=fatal \ -Dorg.apache.commons.logging.simplelog.log.example.foo=debug \ .... will suppress everything except FATAL messages by default, but then allow DEBUG messages from classes in package example.foo and its subpackages. As described in the javadoc, you can also put these settings in a "simplelog.properties" file in the classpath (I haven't tried this myself). Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
