commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@apache.org>
Subject RE: [logging] Need interface...
Date Wed, 03 Apr 2002 19:48:01 GMT
> -----Original Message-----
> From: Geir Magnusson Jr. [mailto:geirm@optonline.net] 
> 
> On 4/3/02 2:32 PM, "Berin Loritsch" <bloritsch@apache.org> wrote:
> 
> >> -----Original Message-----
> >> From: Craig R. McClanahan [mailto:craigmcc@apache.org]
> >> 
> >> 
> >> On Wed, 3 Apr 2002 costinm@covalent.net wrote:
> >> 
> >>> 
> >>> The current model used in log4j, jdk1.4, etc is pull - you
> >> request a
> >>> logger by name. Same thing for jdbc connections, resources, etc.
> >>> 
> >> 
> >> In fact, there's an important philosophical issue about 
> logging here 
> >> as well -- who gets to choose the name of the logger (and 
> therefore 
> >> the log level)?
> > 
> > In IoC based apps, the container.  period.  That is what IoC is all 
> > about.  The container (or manager) makes all the decisions 
> about the 
> > component.
> 
> And that's not what seems to be the philosophy of commons 
> logging.  The component gets to choose, or that is how it appears.
> 
> This is teaching me not to jump to conclusions :)


:) Yep.  Different tools for different fools....

Seriously though, IoC is powerful when done correctly--but a PITA
if done hap-hazardly.  Which is why many developers stick to the
static accessor approach.


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


Mime
View raw message