General
Java
@author <a href="mailto:user@domain.com">John Smith</a>
XML
Logging
OpenJMS uses Commons-Logging for logging.
Log instances must be named using the fully qualified class name in which it is used. Commons-Logging provides a convenience method to specify the name using a Class. E.g, in class org.exolab.jms.server.OpenJMS, use:
private static final Log _log = LogFactory.getLog(OpenJMS.class);
Wrap logging statements with
isLogLevelEnabled()
statements to avoid
evaluation of parameters if the log level is disabled. E.g:
if (_log.isDebugEnabled()) { _log.debug("createReceiver(queue=" + queue + ", clientId=" + clientId + ", selector=" + selector + ") [sessionId=" + _sessionId + "]"); }