private static void setLevel(final boolean[] settings, final LogLevel level) {
        for (int i = 0; i < settings.length; i++) {
            settings[i] = level.ordinal() <= i;
        }
    }
Save a copy of the debug flag from the settings for performance reasons.
main/src/main/java/cgeo/geocaching/utils/Log.java