commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [CLI] new design possibly?
Date Thu, 06 Feb 2003 11:40:53 GMT
From: "James Strachan" <james_strachan@yahoo.co.uk>
> Comparing commons logger and the logkit in Avalon Framework (and ignoring
> their history for now) - they now look practically identical apart from
the
> LogEnabled interface (which isn't really needed anyway though I'm sure if
it
> was essential to Avalon users there wouldn't be much resistence to adding
> something like this to commons-logging).
>
> Indeed there's nothing to stop someone using logkit in Avalon Framework in
a
> non-IOC way.
>
> public class SomeBean {
>     private Logger log = new ConsoleLogger();
>     ...
> }
>
> So objecting about commons-logging not advocating IOC doesn't seem to make
> sense. It'd be trivial to write a commons Log implementation that uses
> logkit if you're really concerned about logging integration - though for
> command line tools I'm not sure its worth it.

Correction. There's already a Log implementation for LogKit.

http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/imp
l/LogKitLogger.html

So CLI (and indeed any other commons component) can happily log to logkit.

James
-------
http://radio.weblogs.com/0112098/

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message