ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: commons logging q
Date Sat, 18 Jan 2003 19:20:00 GMT

----- Original Message -----
From: "Costin Manolache" <cmanolache@yahoo.com>
To: <ant-dev@jakarta.apache.org>
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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message