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