spring web接收请求日志,动态调整

  • 开启日志路径

org.springframework.web.servlet.DispatcherServlet

  • yml
logging:
  level:
    org.springframework.web.servlet.DispatcherServlet: DEBUG
  • actuator动态配置
curl -X POST http://ip:port/actuator/loggers/org.springframework.web.servlet.DispatcherServlet -H "Content-Type: application/json" -d '{"configuredLevel": "DEBUG"}'

你可能感兴趣的:(Spring,spring,前端,java)