Hi Xavier, > They are giving an exemple where the use of the explicit test is > useful: when you need to do some expensive work _only_ to produce a > result to be logged. With the use of the test you can avoid executing > that expensive code that is not needed if logging is off. And /that/ is when I would consider the trade off and clutter my code. :)
if (debug) { System.out.println(veryComplicatedObject.veryExpensiveToString()); } // Of course, I use commons-logging instead. Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED], [EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]