public static Level getRootLogLevel() {
        // SLF4J doesn't provide a hook into the logging implementation. We'll have to do this 'direct', bypassing slf4j.
        final LoggerContext ctx = (LoggerContext) LogManager.getContext( false );
        final Configuration config = ctx.getConfiguration();
        final LoggerConfig loggerConfig = config.getRootLogger();
        return loggerConfig.getLevel();
    }
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