日志配置如下:如何将不同业务模块产生的日志 分多文件记录
此时 Spring Boot Admin 中看不了 Client 的日志
Logfile ViewerBy default the logfile is not accessible via actuator endpoints and therefore not visible in Spring Boot Admin. In order to enable the logfile actuator endpoint you need to configure Spring Boot to write a logfile, either by setting logging.file.path or logging.file.name.
https://codecentric.github.io/spring-boot-admin/#logfile
logging:
file:
name: ./logs/debug.log
spring:
boot:
admin:
client:
url: http://localhost:8080 #这里配置admin server 的地址
logging.file.name 如果不指定文件名,Spring Boot Admin 中将无法查看
精彩内容
发表评论