@SuppressWarnings("deprecation")
    private static Priority translateLevel(Level in) {
        switch (in) {
        case DEBUG:
            return Priority.DEBUG;
        case ERROR:
            return Priority.ERROR;
        case INFO:
            return Priority.INFO;
        case WARN:
            return Priority.WARN;
        case FATAL:
            return Priority.FATAL;
        }
        return Priority.ERROR;
    }