【发布时间】: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/logfile 的404 状态响应
如前所述,服务正在运行,application-*.yml 中的日志记录设置为
logging.file: /opt/tomcat/logs/shorty.log
此文件的读取权限由所有人共享。 为什么我看不到日志文件的内容?我错过了什么吗?
【问题讨论】:
标签: spring-boot jhipster spring-cloud-config jhipster-registry