cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tagunov Anthony" <atagu...@nnt.ru>
Subject Re: log performance penalties
Date Sat, 17 Feb 2001 13:33:15 GMT
Hello, evrybody!

On Thu, 15 Feb 2001 15:49:24 +0100, Stefano Mazzocchi wrote:

>I'm looking at the changes made to Cocoon while I was away:
>
>are you guys aware of the fact that something like
>
>  getLogger().debug("Making URL from " + location);

Maybe doing something like getLogger().debug("Making URL from",location)
would make things easier?

I'm speaking about implementing things like debub(String), debug(String,String), debug(String,String,String)?
That's what i do for my applications (non-cocoon)
>is translated by java compilers into 
>
>  StringBuffer sb = new StringBuffer("Making URL from ");
>  sb.append(location);
>  getLogger().debug(sb.toString());
>
>which generates
>
> 1) a new stringbuffer object
> 2) a new String
>
>even if debug log channel is disabled?

Best regards, Tagunov Anthony



Mime
View raw message