使用 Heroku Platform API是否可以通过 HTTP 请求获取应用程序的最新日志消息?
最佳答案
我想你应该可以得到你想要的。您可以通过以下方式获取日志 session :https://devcenter.heroku.com/articles/platform-api-reference#log-session-create
您可以使用那里返回的 logplex_url 来查找日志。如果您只是对该 url 执行 GET,您可能会得到您想要的。流式传输它们并不完全是 HTTP,所以事情变得有点复杂,但我认为这应该能让你得到最后几行。
关于logging - 使用 Heroku Platform API 获取日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20841125/