无法使用“ cf logs my-cool-app”获取我的应用程序日志;命令(CF版本6.27) [英] Not able to get my application logs using "cf logs my-cool-app" command (CF version 6.27)
问题描述
我看到了发出几年前的问题,但是我面临着同样的问题。
I see an issue just like this from a few years ago, but I am facing the same problem.
我正在使用 cf版本6.27.0 + d26b32dcc.2017-06-08
和 bx版本0.5.4 + ae22935-2017-05-18T06:24:28 + 00:00
当我发布 bx应用程序日志< myappname>
时,出现此错误配置文件中缺少Loggregator终结点
如果我发出 cf日志< myappname>
,它的工作原理就像魅力。
When I issue bx app logs <myappname>
, I get this error Loggregator endpoint missing from config file
If I issue cf logs <myappname>
, it works like a charm.
有人可以为此提供指导吗?谢谢
Can anyone provide guidance on this? thank you
推荐答案
bx应用日志
正在使用嵌入式cf cli,而嵌入式版本cf cli太旧了。
bx app logs
is using embedded cf cli, while that embedded version cf cli is too old.
一种解决方法是将cf cli二进制文件复制到目录 / usr / local / Bluemix / bin / cfcli
A workaround is to copy the cf cli binary to directory "/usr/local/Bluemix/bin/cfcli"
这篇关于无法使用“ cf logs my-cool-app”获取我的应用程序日志;命令(CF版本6.27)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!