【问题标题】:JHipster Registry cannot get logfileJHipster Registry 无法获取日志文件
【发布时间】:2018-06-14 10:30:05
【问题描述】:

我有一个 JHipster 单体应用程序与 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/logfile404 状态响应

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

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

此文件的读取权限由所有人共享。 为什么我看不到日志文件的内容?我错过了什么吗?

【问题讨论】:

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


    【解决方案1】:

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

    但这对于默认配置似乎没有必要。在为 JHipster Registry 删除 application.yaml 中的此内容后,一切都像魅力一样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-23
      • 2013-05-26
      • 2013-09-11
      • 2019-09-18
      • 2015-02-23
      • 2016-01-30
      相关资源
      最近更新 更多