public static void setDebugEnabled(final boolean enabled) {
        if (enabled && getRootLogLevel().isMoreSpecificThan(Level.DEBUG)) {
            lastLogLevel = getRootLogLevel();
            setLogLevel(Level.DEBUG);
        } else if (!enabled && getRootLogLevel().isLessSpecificThan(Level.DEBUG)) {
            setLogLevel(lastLogLevel != Level.DEBUG ? lastLogLevel : Level.INFO);
            lastLogLevel = Level.DEBUG;
        }
    }
Openfire makes use of a logging facade (slf4j) to manage its log output. The
facade is backed up by Log4j by default. This class provides utility methods.
<p>
Additionally, this class provides methods that can be used to record logging
statements. These methods are exact duplicates of the previous Log
implementation of Openfire and are kept for backwards-compatibility (the are
deprecated). These methods will delegate logging functionality to slf4j.
Instead of these methods, slf4j logging functionality should be used
directly.

@author Guus der Kinderen, guus.der.kinderen@gmail.com
@see <a href="http://www.slf4j.org/">http://www.slf4j.org/</a>
xmppserver/src/main/java/org/jivesoftware/util/Log.java