Re: I think the answer to this question is no

2010-01-19 Thread Dominique Devienne
On Tue, Jan 19, 2010 at 11:18 AM, Stefan Bodewig wrote: > On 2010-01-19, Mitch Gitman wrote: >> It seems that, since the project knows all its listeners to notify >> them of an event, it wouldn't be so hard to add a method to query all >> the listeners for their log level and then return the max

Re: I think the answer to this question is no

2010-01-19 Thread Stefan Bodewig
On 2010-01-19, Mitch Gitman wrote: > It seems that, since the project knows all its listeners to notify > them of an event, it wouldn't be so hard to add a method to query all > the listeners for their log level and then return the max of that. The > build listeners would also need a getter for t

Re: I think the answer to this question is no

2010-01-19 Thread Mitch Gitman
Thanks, Dominique. You stated this quite clearly. It seems that, since the project knows all its listeners to notify them of an event, it wouldn't be so hard to add a method to query all the listeners for their log level and then return the max of that. The build listeners would also need a getter

Re: I think the answer to this question is no

2010-01-18 Thread Dominique Devienne
On Sun, Jan 17, 2010 at 11:30 PM, Mitch Gitman wrote: > Is there any programmatic mechanism within Ant to arbitrarily query what the > current log level is? [...] > > What I'd like to do is invoke getProject().log("Some message", > Project.MSG_VERBOSE) only if the current log level is verbose. No

I think the answer to this question is no

2010-01-17 Thread Mitch Gitman
But it doesn't hurt to ask. Is there any programmatic mechanism within Ant to arbitrarily query what the current log level is? For example, can the task I'm implementing find out whether the user has invoked Ant with the -verbose option? The analogous functionality in Commons Logging or Log4j woul