ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant log statements being created even when not used
Date Mon, 25 Sep 2006 19:05:55 GMT
On Mon, 25 Sep 2006, Scott Stirling <scottstirling@gmail.com> wrote:
> What's wrong with a guard statement that doesn't construct the log
> message unless the log level at which the message is used is
> enabled?
> 
> i.e.:
> 
> if (LOG.isDebugEnabled()) {

Nobody, except for the BuildListener knows whether a message is going
to be logged or not, so implementing the isDebugEnabled() method is a
bit problematic.

Stefan

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


Mime
View raw message