Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 19390 invoked from network); 7 Mar 2007 17:26:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2007 17:26:35 -0000 Received: (qmail 82842 invoked by uid 500); 7 Mar 2007 17:26:37 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 82804 invoked by uid 500); 7 Mar 2007 17:26:36 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 82793 invoked by uid 99); 7 Mar 2007 17:26:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 09:26:36 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of vegorov@bea.com designates 66.248.192.22 as permitted sender) Received: from [66.248.192.22] (HELO usremg02.bea.com) (66.248.192.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 09:26:25 -0800 Received: from usremr01.bea.com (usremr01.bea.com [10.160.29.91]) by usremg02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l27HQ3X3016296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 7 Mar 2007 09:26:03 -0800 Received: from repbex01.amer.bea.com (repbex01.bea.com [10.160.26.98]) by usremr01.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l27HPpJA020269 for ; Wed, 7 Mar 2007 09:26:00 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: how to get Project' message output level Date: Wed, 7 Mar 2007 09:26:00 -0800 Message-ID: <6E9C82D532D127439D866C042518277003B7D4E3@repbex01.amer.bea.com> In-Reply-To: <255d8d690703061320l53fea897y8e703ee3a815de8c@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how to get Project' message output level Thread-Index: AcdgNVe/YPYYKsmdTi2O7a01JtYwsQApnVwg References: <6E9C82D532D127439D866C042518277003B7CF79@repbex01.amer.bea.com> <255d8d690703061320l53fea897y8e703ee3a815de8c@mail.gmail.com> From: "Vladimir Egorov" To: "Ant Users List" X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.21.161433 X-Virus-Checked: Checked by ClamAV on apache.org Dominique, 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, --Vladimir > -----Original Message----- > From: Dominique Devienne [mailto:ddevienne@gmail.com] > Sent: Tuesday, March 06, 2007 1:20 PM > To: Ant Users List > Subject: Re: how to get Project' message output level >=20 > On 3/6/07, Vladimir Egorov wrote: > > Project defines MSG_ERR, MSG_WARN, etc. codes. Is there a programmatic > > way to get current message output level (log level)? I suppose this > > would come from the flag (-verbose, -debug, etc.) that user passed on > > command line. >=20 > 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 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org _______________________________________________________________________ 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: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org