OPENJPA-355 Fix checking for log levels; patch submitted by Adrian Co"

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@573653 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Craig Russell 2007-09-07 18:10:43 +00:00
parent caa4b76fe2
commit 7d9724ac00
1 changed files with 5 additions and 5 deletions

View File

@ -49,23 +49,23 @@ public class Log4JLogFactory extends LogFactoryAdapter {
} }
public boolean isTraceEnabled() { public boolean isTraceEnabled() {
return _log.getEffectiveLevel().toInt() >= Level.DEBUG_INT; return _log.isEnabledFor(Level.DEBUG);
} }
public boolean isInfoEnabled() { public boolean isInfoEnabled() {
return _log.getEffectiveLevel().toInt() >= Level.INFO_INT; return _log.isEnabledFor(Level.INFO);
} }
public boolean isWarnEnabled() { public boolean isWarnEnabled() {
return _log.getEffectiveLevel().toInt() >= Level.WARN_INT; return _log.isEnabledFor(Level.WARN);
} }
public boolean isErrorEnabled() { public boolean isErrorEnabled() {
return _log.getEffectiveLevel().toInt() >= Level.ERROR_INT; return _log.isEnabledFor(Level.ERROR);
} }
public boolean isFatalEnabled() { public boolean isFatalEnabled() {
return _log.getEffectiveLevel().toInt() >= Level.FATAL_INT; return _log.isEnabledFor(Level.FATAL);
} }
public void trace(Object o) { public void trace(Object o) {