ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Cohen <sco...@javactivity.org>
Subject Ant Logging isVerbose()?
Date Mon, 30 May 2005 16:42:04 GMT
In log4j, commons-logging, etc.  a common pattern is

if (isDebugEnabled()) {
    // some expensive string building to put message together
   log.debug(expensiveMessage);
}

The point is that without the isXXXEnabled(), the expensive string 
building must occur even if the most verbose logger activated is not 
verbose enough to cause the log message to be written.

I don't see such functionality in Ant and yet it seems to me like an 
obviously useful extension.  Has there been discussion before about this 
and a conscious decision not to do it?



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message