日志配置如下:如何將不同業務模塊產生的日志 分多文件記錄
此時 Spring Boot Admin 中看不了 Client 的日志
Logfile Viewer
By 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 中將無法查看