All, I am looking at the log4j documentation and it states the following
"To avoid the parameter construction cost write: if(logger.isDebugEnabled() { logger.debug("Entry number: " + i + " is " + String.valueOf(entry[i])); }" I do want to avoid the parameter construction cost, but I don't want to check for IsXXXEnabled everytime I use a log statement because it makes my code clumsy. Is there a better way of doing this ? Is there a config flag somewhere ? or should I extend the logger classes and check for IsXXXenabled before calling the Log4j classes. And then my code can call my log4jextended classes. Again, I don't want to check for IsXXXEnabled every time I use a log statement. Any help is appreciated. Thks, - Ashish. --------------------------------- Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day