[jbosscache-issues] [JBoss JIRA] (JBCACHE-1625) Logging level is cached
Dennis Reed (JIRA)
jira-events at lists.jboss.org
Mon Aug 27 16:27:14 EDT 2012
Dennis Reed created JBCACHE-1625:
------------------------------------
Summary: Logging level is cached
Key: JBCACHE-1625
URL: https://issues.jboss.org/browse/JBCACHE-1625
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.2.8.GA
Reporter: Dennis Reed
Assignee: Dennis Reed
JBoss Cache makes extensive use of the following pattern:
private static final boolean trace = log.isTraceEnabled();
...
if (trace) log.trace("foo " + foo);
This is an anti-pattern that prevents the log level from being changed dynamically without restarting the JVM.
The logging level should not be cached, but checked on each statement:
if (log.isTraceEnabled()) log.trace("foo " + foo);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosscache-issues
mailing list