@PutMapping(value = "/log")
    @Secured(action = ActionTypes.WRITE, resource = "nacos/admin", signType = SignType.CONSOLE)
    public RestResult<Void> updateLog(@RequestBody LogUpdateRequest logUpdateRequest) {
        Loggers.setLogLevel(logUpdateRequest.getLogName(), logUpdateRequest.getLogLevel());
        return RestResultUtils.success();
    }
@Test
    void testSetLogLevel() {
        LogUpdateRequest request = new LogUpdateRequest();
        request.setLogName("core");
        request.setLogLevel("debug");
        RestResult<?> res = coreOpsV2Controller.updateLog(request);
        
        assertTrue(res.ok());
        assertTrue(Loggers.CORE.isDebugEnabled());
    }