JHipster Registry无法获取日志文件

时间:2018-01-04 16:30:54

标签: spring-boot jhipster spring-cloud-config jhipster-registry

我有一个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

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

1 个答案:

答案 0 :(得分:0)

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

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