try { String temp = getFirstAttrbuteByTagName(new String[] {"options", "logging", "level"}); Level result = Level.OFF; if (temp.compareToIgnoreCase("INFO") == 0) { return Level.INFO; } else if (temp.compareToIgnoreCase("DEBUG") == 0) { return Level.DEBUG; } else if (temp.compareToIgnoreCase("WARN") == 0) { return Level.WARN; } else if (temp.compareToIgnoreCase("FATAL") == 0) { return Level.FATAL; } else if (temp.compareToIgnoreCase("ALL") == 0) { return Level.ALL; } else if (temp.compareToIgnoreCase("OFF") == 0) { return Level.OFF; }
try { String temp = propertyHandler.get("options_logging_level"); Level result = Level.OFF; if (temp.compareToIgnoreCase("INFO") == 0) { return Level.INFO; } else if (temp.compareToIgnoreCase("DEBUG") == 0) { return Level.DEBUG; } else if (temp.compareToIgnoreCase("WARN") == 0) { return Level.WARN; } else if (temp.compareToIgnoreCase("FATAL") == 0) { return Level.FATAL; } else if (temp.compareToIgnoreCase("ALL") == 0) { return Level.ALL; } else if (temp.compareToIgnoreCase("OFF") == 0) { return Level.OFF; }
    public Level getLogLevel() {        try {            String temp = getFirstAttrbuteByTagName(new String[] {"options",                "logging", "level"});            Level result = Level.OFF;            if (temp.compareToIgnoreCase("INFO") == 0) {                return Level.INFO;            }            else if (temp.compareToIgnoreCase("DEBUG") == 0) {                return Level.DEBUG;            }            else if (temp.compareToIgnoreCase("WARN") == 0) {                return Level.WARN;            }            else if (temp.compareToIgnoreCase("FATAL") == 0) {                return Level.FATAL;            }            else if (temp.compareToIgnoreCase("ALL") == 0) {                return Level.ALL;            }            else if (temp.compareToIgnoreCase("OFF") == 0) {                return Level.OFF;            }            if (logger.isEnabledFor(Level.DEBUG)) {                logger.debug("Aktueller Loglevel: " + result.toString());            }            return result;        }        catch (Exception e) {            AppleJuiceDialog.rewriteProperties = true;            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(PROPERTIES_ERROR_MESSAGE, e);            }            AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false);            return null;        }    }