springBoot2.0 动态修改日志级别
作者:
炒面Z | 来源:发表于
2018-12-12 21:16 被阅读0次
1.pom修改
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2.yml配置文件修改
##运行状态 actuator监控
management:
endpoints:
web:
exposure:
include: info,health,loggers
3.接口
查看日志信息:
http://ip:port/actuator/loggers
查看日志信息:
[http://ip:port/actuator/loggers](http://ip:port:8081/actuator/loggers)
修改日志级别:
http://ip:port/actuator/loggers/edu.sairobo
post参数格式:
{
"configuredLevel": "ERROR"
}
本文标题:springBoot2.0 动态修改日志级别
本文链接:https://www.haomeiwen.com/subject/kqqmhqtx.html
网友评论