On 4/3/02 3:52 PM, "Michael A. Smith" <[EMAIL PROTECTED]> wrote:

> On Wed, 3 Apr 2002 [EMAIL PROTECTED] wrote:
>> Again - I have doubts about how this will work for apps with multiple
>> loggers, but the idea of supporting both push and pull is valid.
> 
> One method of supporting multiple loggers is to specify a LogFactory
> rather than a log.  The component can then call the specified factory to
> retrieve a log instance to its liking.  And if the container wants the
> component to use one and only one logger, it can provide a LogFactory to
> the component that will always return the same Log instance.
> 
> E.g. 
> 
> public interface LogUser {
> void setCommonsLogFactory(LogFactory factory);
> }
> 

That works :)

-- 
Geir Magnusson Jr.                                     [EMAIL PROTECTED]
System and Software Consulting
"We will be judged not by the monuments we build, but by the monuments we
destroy" - Ada Louise Huxtable


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to