public static LogLevel readLogLevel(final Properties logProps, final String propName) {
        if (!logProps.containsKey(propName)) {
            return null;
        }
        try {
            return LogLevel.valueOf(logProps.getProperty(propName).toUpperCase(Locale.US));
        } catch (Exception e) {
            return null;
        }
    }
Save a copy of the debug flag from the settings for performance reasons.
main/src/main/java/cgeo/geocaching/utils/Log.java