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 中將無法查看


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM