Ah, ok, so then a logger is named after the package of the class it is defined in? If xxxx is the name of the logger, as the docs say, that would make sense (and that would also be the missing piece of the puzzle I needed to understand that, because I had read those docs before).

In any case, thanks Simon!

Frank

Simon Kitching wrote:
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]



.


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to