@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();
    }
@Test
    public void testGetLevelNotFound() {
        final String logger = "org.apache.rostropovich";
        when(herder.loggerLevel(logger)).thenReturn(null);
        assertThrows(
                NotFoundException.class,
                () -> loggingResource.getLogger(logger)
        );
    }