You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jeffrey Bacon <jb...@magmic.com> on 2004/07/07 18:00:42 UTC
identifying current logging level in custom task
Is there any way for a custom task to determine what the current logging
level for the project is at? For example, when I pass '-verbose' on the
command line and Ant goes into verbose logging level, can I identify
that situation and then print out logging info if I am in that level?
no, printing to log(msg, Project.MSG_VERBOSE) doesn't do what I want as
I want to tell command that I execute from within the task whether to
output verbose info or not.
--
--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: identifying current logging level in custom task
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 07 Jul 2004, Jeffrey Bacon <jb...@magmic.com> wrote:
> Is there any way for a custom task to determine what the current
> logging level for the project is at?
Ant really doesn't have a logging level, each Build listener has. The
level you set with the command line arguments only affects the
DefaultBuildLogger. If you use the XML logger, for example, it will
be completely ignored.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org