[picocontainer-dev] PicoContainer Logging

Mauro Talevi <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
Hi all,

an update on the work I've been doing with logging 
(http://jira.codehaus.org/browse/PICO-309).  The use case for this is of 
course that with all of Pico's emphasis on IoC, when it comes to using 
the available logging frameworks the nasty static lookup and discovery 
mechanisms come back to byte.  Eg, you can't really configure properly 
different components to use different logging systems - if all the jars 
are in the classpath.

So, I resurrected LoggerStore - which we developed with Peter Donald 
long time ago.  He has kindly donated his part of copyright to 
PicoContainer and I've ported it, adapting it to JDK 1.5 and modifying 
slightly the logger interface to be compatible with C-L Log (and log4j 
Logger), along with a few other minor changes, such as replacing checked 
exceptions with runtime ones.  I've also dropped Avalon support (gotta 
let go at some point ... but it can be easily added should there be a 
use case or demand for it).

I've actually made it extend C-L Log - so the LoggerStore can actually 
be used as a non-static replacement for the horrible LogFactory 
mechanism.  The Log interface is actually the only thing is uses of C-L. 
  It uses its own IoC-friendly logger implementations.  But I'd like to 
sound out opinions on this.

The LoggerStore component does not depend on PicoContainer in any way 
and as such we made it live as a standalone component.  Who knows, one 
day it may even fulfill its dream and be re-united with its lawful 
family in a IoC-friendly commons-logging - or logging like it ought to 
be :-)

Anyway, I've uploaded some basic docs and javadocs at 
http://picocontainer.org/logging.  I plan to add more extensive usage 
info and monitor how-to.

Comments most welcome.   In particular, how do you feel about using the 
LoggerStore in Gems monitors?

Cheers





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.