Spring Boot动态修改日志级别


1、

pom中引入

org.springframework.boot       spring-boot-starter-actuator

 

 

2、

发送POST请求:

 

地址

http://[服务地址]:[服务端口]/loggers/[要修改日志级别的包路径]

 

请求头

name: Content-Type

value: application/json

 

请求体

{"configuredLevel":"DEBUG"}

后边的DEBUG为日志级别

 

 

 

参考内容:

https://blog.csdn.net/tlk20071/article/details/75304086


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM