直接调用 actuator/loggers 接口修改日志级别
//演示:使用curl命令动态修改com.test.controller包下的日志级别是debug
curl -d '{"configuredLevel":"debug"}' -H 'Content-Type: application/json' http://localhost:7210/actuator/loggers/com.test.controller
ZhuaXia.xyz
直接调用 actuator/loggers 接口修改日志级别
//演示:使用curl命令动态修改com.test.controller包下的日志级别是debug
curl -d '{"configuredLevel":"debug"}' -H 'Content-Type: application/json' http://localhost:7210/actuator/loggers/com.test.controller