public boolean isEnabled(Logger logger) {
        requireNonNull(logger, "logger");
        switch (this) {
            case OFF:
                return false;
            case TRACE:
                return logger.isTraceEnabled();
            case DEBUG:
                return logger.isDebugEnabled();
            case INFO:
                return logger.isInfoEnabled();
            case WARN:
                return logger.isWarnEnabled();
            case ERROR:
                return logger.isErrorEnabled();
            default:
                throw new Error();
        }
    }
Returns {@code true} if this level is enabled.
core/src/main/java/com/linecorp/armeria/common/logging/LogLevel.java