On Jun 12, 2008, at 10:56 AM, Jiri Pejchal wrote:
Hi, is there any real difference between getting logger each time a message is being logged by calling Logger.getLogger() : Logger.getLogger(getClass()).info("message"); and putting logger as a class member: final Logger logger = Logger.getLogger(getClass()); and than in methods use: logger.info("message"); I have an older web application that uses the first form and I'm just wondering if I could use the second form without consequences. Thanks. Jiri Pejchal
The second form should be significantly faster. Other than that, there should not be any observable external difference.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]