ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Egorov" <>
Subject RE: how to get Project' message output level
Date Wed, 07 Mar 2007 17:26:00 GMT

Thank you for your explanation. Something is still strange here, as
indeed, only the default logger gets to know the user-specified log
level (Main.createLogger()).

I am also looking at Ant task and I see that for the called project, the
logger is set to MSG_INFO level, regardless of what user specified. I
will go with the same approach for my remote Ant call.

Thank you again,


> -----Original Message-----
> From: Dominique Devienne []
> Sent: Tuesday, March 06, 2007 1:20 PM
> To: Ant Users List
> Subject: Re: how to get Project' message output level
> On 3/6/07, Vladimir Egorov <> wrote:
> > Project defines MSG_ERR, MSG_WARN, etc. codes. Is there a
> > way to get current message output level (log level)? I suppose this
> > would come from the flag (-verbose, -debug, etc.) that user passed
> > command line.
> There is no "current" log level in Ant. The CLI flags set the log
> level for the "Default" logger, but other listeners can (and often do)
> use a different level. For example, the XML listener by default logs
> all messages, at any levels. Since loggers/listeners don't tell Ant at
> what level they are currently operating, Ant does not know what's the
> max (or min) log level in effect at any one time. So no, it cannot be
> done. Sorry, --DD
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message