commons-dev mailing list archives

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

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

- Paul

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message