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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to