@GET
    @Path("/{logger}")
    @Operation(summary = "Get the log level for the specified logger")
    public Response getLogger(final @PathParam("logger") String namedLogger) {
        Objects.requireNonNull(namedLogger, "require non-null name");

        LoggerLevel loggerLevel = herder.loggerLevel(namedLogger);
        if (loggerLevel == null)
            throw new NotFoundException("Logger " + namedLogger + " not found.");

        return Response.ok(loggerLevel).build();
    }
Get the log level of a named logger.

@param namedLogger name of a logger
@return level of the logger, effective level if the level was not explicitly set.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/LoggingResource.java