JHipster Registry无法获取日志文件

问题描述 投票:0回答:1

我有一个JHipster monolith应用程序与JHipster Registry一起成功运行。一切都很好,我可以看到我的应用程序实例和所有指标。

但是我在“管理/日志”选项卡下得到以下提示:

No available logfile. 
Please check:
 - if the microservice is up
 - these properties are set: 
     - logging.path
     - logging.file (to avoid using the same spring.log)

See:
 - https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html
 - https://docs.spring.io/spring-boot/docs/current/reference/html/howto-logging.html

还有针对/management/logfile的404状态回复

如前所述,服务正在运行,并且application-*.yml日志记录设置为

logging.file: /opt/tomcat/logs/shorty.log

每个人都共享此文件的读取权限。为什么我看不到日志文件的内容?我错过了什么?

spring-boot jhipster spring-cloud-config jhipster-registry
1个回答
0
投票

好吧,我的Spring Cloud Config错了。我有额外的logging.path属性集。

但是默认配置似乎没有必要。在application.yaml中为JHipster Registry删除后,一切都像魅力一样。

© www.soinside.com 2019 - 2024. All rights reserved.