public static Level getVespaLogLevel(Level level) {
        Level ll = javaToVespa.get(level);
        if (ll != null) {
            return ll;
        }
        int lv = level.intValue();
        if (lv > WARNING.intValue()) {
            return ERROR;
        }
        if (lv > INFO.intValue()) {
            return WARNING;
        }
        if (lv > DEBUG.intValue()) {
            return INFO;
        }
        if (lv > FINEST.intValue()) {
            return DEBUG;
        }
        return SPAM;
    }
Static method for mapping Java log level to VESPA log level.

@param level The Java loglevel we want mapped to its VESPA
             counterpart
@return The VESPA LogLevel instance representing the corresponding
        log level (or nearest normal level numerically if not in map)
vespalog/src/main/java/com/yahoo/log/LogLevel.java