springbootadmin2.2.3查看⽇志报404
我的版本是spirngboot admin 2.2.3,结合了eureka使⽤,
client的l⾥,⽇志路径为logs/output.log
admin-server的配置:
spring:
application:
name: admin-server
server:
port: 8080
eureka:
client:
registryFetchIntervalSeconds: 5
service-url:
defaultZone: localhost:8761/eureka/
faintinstance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
admin-client的配置:
spring:
application:
name: admin-customer1
server:
port: 8081
eureka:
client:
registryFetchIntervalSeconds: 5
service-url:
defaultZone: localhost:8761/eureka/
instance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
logging:
file:
path: logs/output.log
pattern:
file: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx"
eureka-server的配置:
spring:
application:
name: eureka-server
server:
port: 8761
eureka:
client:
service-url:
defaultZone: localhost:8761/eureka
register-with-eureka: false
fetch-registry: false
请⼤佬们帮我看看,是哪⾥配置没配好,导致查看不了⽇志。其他监控信息都是能看到的。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论