private static LogLevel stringToLevel(final String levelStr) {
        if ("trace".equalsIgnoreCase(levelStr)) {
            return LogLevel.TRACE;
        }
        if ("verbose".equalsIgnoreCase(levelStr)) {
            return LogLevel.TRACE;
        }
        if ("debug".equalsIgnoreCase(levelStr)) {
            return LogLevel.DEBUG;
        }
        if ("info".equalsIgnoreCase(levelStr)) {
            return LogLevel.INFO;
        }
        if ("warn".equalsIgnoreCase(levelStr)) {
            return LogLevel.WARN;
        }
        if ("error".equalsIgnoreCase(levelStr)) {
            return LogLevel.ERROR;
        }
        // assume INFO by default
        return LogLevel.INFO;
    }