----- Original Message -----
From: "Costin Manolache" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 18, 2003 08:35
Subject: Re: commons logging q


> Steve Loughran wrote:
>
> > so its pretty easy to do an implementation of the commons log that sends
> > the messages to ant at the appropriate level, but I am stuck at the
> > factory
> >

> Not sure what you need - we can save the LogFactory in an ant reference,
> if you want all tasks to use the same factory.

no its more forcing some other code into using the factory we want them to.

>
> Or we can add a set method to c-l that sets the LogFactory for the current
> context. ( I don't think it should be the Thread, but the
> Thread.contextClassLoader() - so you can set it per webapp ).
>
> Something like
>  static LogFactory.setLogFactory( ClassLoader thCL, LogFactory f);
> Send a patch to commons, it seems a reasonable use case.

yes, that is what I am thinking would be the cleanest way.


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

Reply via email to