Hi,
On Sat, 26 May 2007, Ben Gunter wrote:
> I agree. In fact, I was just thinking the same thing last night. In many
> cases, it is the expense of collecting the information that is to be
> logged that should be avoided by placing it in an if
> (log.isDebugEnabled()) {} block.
Wouldn't replacing
log.debug(complexExpression());
with
log.debug(new Object[] { public String toString() {
return complexExpression();
}});
do the trick?
Andy
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development