commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hammant <Paul_Hamm...@yahoo.com>
Subject Re: [logging] Need interface...
Date Wed, 03 Apr 2002 16:19:17 GMT
Costin,

>>What we need is a marker interface that indicates a tool wants a logger, and
>>of course a method to give it the logger...  I did a quick scan of the
>>public API, and there doesn't seem to be one.
>>
>>So what I propose is to add an interface 'LogUser' or something like it (we
>>can quibble about the name...)
>>
>> public interface LogUser
>> {
>>    public void setCommonsLogger(Log log)
>> }
>>
>
>In other words, you also want a 'push' model for the logger. Curently each 
>component is supposed to 'pull' the logger.
>
Not wishing to be political, just to furnish you with info, the 'push' 
model is described as 'Inversion of Control'  -->

   http://jakarta.apache.org/avalon/framework/inversion-of-control.html

- Paul


--
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