Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 79418 invoked from network); 30 May 2005 19:13:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2005 19:13:44 -0000 Received: (qmail 96540 invoked by uid 500); 30 May 2005 19:13:42 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 96299 invoked by uid 500); 30 May 2005 19:13:40 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 96284 invoked by uid 99); 30 May 2005 19:13:40 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from samaflost.de (HELO www.samaflost.de) (217.160.128.107) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 30 May 2005 12:13:39 -0700 Received: by www.samaflost.de (Postfix, from userid 1000) id EFA9982BCD4; Mon, 30 May 2005 21:13:36 +0200 (CEST) To: dev@ant.apache.org Subject: Re: Ant Logging isVerbose()? X-Draft-From: ("nnfolder:mail.jakarta-ant" 69130) References: <429B425C.4000906@javactivity.org> From: Stefan Bodewig Date: Mon, 30 May 2005 21:13:36 +0200 In-Reply-To: <429B425C.4000906@javactivity.org> (Steve Cohen's message of "Mon, 30 May 2005 11:42:04 -0500") Message-ID: <878y1wzfvj.fsf@www.samaflost.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mon, 30 May 2005, Steve Cohen wrote: > In log4j, commons-logging, etc. a common pattern is > > if (isDebugEnabled()) { > // some expensive string building to put message together > log.debug(expensiveMessage); > } > > I don't see such functionality in Ant Because Ant doesn't have a way to determine isDebugEnabled(). XmlLogger, for example, logs everything and ignores the command line switches. So the only "thing" which would know it is the listeners themselves. Since the listener API doesn't expose the verbosity - and changing the interface is no good idea either - I don't see how we could do it. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org