Spring Boot Admin 查看 Client 日志

日志配置如下:如何将不同业务模块产生的日志 分多文件记录

此时 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 中将无法查看

posted @ 2021-10-08 14:16  VipSoft  阅读(1386)  评论(0编辑  收藏  举报