src/com/newrelic/metrics/publish/util/Logger.java
/*
     * Translate supported log level to Logback level
     */
Translate supported log level to Logback level
Translate supported log level to Logback level
static ch.qos.logback.classic.Level translateLevel(Level level) {
        if (level == null) {
            throw new IllegalArgumentException("'level' cannot be null");
        }
        switch (level) {
        case Debug:
            return ch.qos.logback.classic.Level.DEBUG;
        case Info:
            return ch.qos.logback.classic.Level.INFO;
        case Warn:
            return ch.qos.logback.classic.Level.WARN;
        case Error:
            return ch.qos.logback.classic.Level.ERROR;
        case Fatal:
            return ch.qos.logback.classic.Level.ERROR;
        default:
            return ch.qos.logback.classic.Level.INFO;
        }
    }
static ch . qos . logback . classic . Level translateLevel ( Level level ) { if ( level == null ) { throw new IllegalArgumentException ( "'level' cannot be null" ) ; } switch ( level ) { case Debug : return ch . qos . logback . classic . Level . DEBUG ; case Info : return ch . qos . logback . classic . Level . INFO ; case Warn : return ch . qos . logback . classic . Level . WARN ; case Error : return ch . qos . logback . classic . Level . ERROR ; case Fatal : return ch . qos . logback . classic . Level . ERROR ; default : return ch . qos . logback . classic . Level . INFO ; } }
Translate supported log level to Logback level
Translate supported log level to Logback level