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);
}
regards,
michael
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>