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
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
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
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
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