THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- In general logging is a good idea.
- Use Commons Logging Slf4j.
- For debug messages, call
if (log.isDebugEnabled())
prior to callinglog.debug()
. - The following code is usually bad. There is no need to log exception and re-throw it:
Either log it, or re-throw.Code Block try { } catch (Exception e) { logger.error(e.getMessage(), e); throw new RuntimeException(e); }
...