Heroku:你如何检查Heroku错误日志? [英] Heroku: How can you check Heroku Error Logs?

查看:183
本文介绍了Heroku:你如何检查Heroku错误日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个免费的Heroku帐户上的PHP应用程序。今天没有明显的原因,我Heroku的应用程序错误屏幕大约一个小时。 Heroku的状态报告页面没有停机时间。



我想检查日志以找出应用程序失败的原因。但是不知道该怎么做!有人可以帮我吗?

您的日志的最后100行。



或者实时查看日志:
heroku logs -t $ b Heroku只保存最后的1500行日志,您可以使用 heroku logs -n 1500 。如果您想要更多日志记录,请查看Heroku附加组件,例如Logentries或Papertrail。


I've got a PHP application on a free Heroku account. Today for no apparent reason I got Heroku's Application Error screen for about an hour. No downtimes on Heroku's status report page.

I'd like to check the logs to figure out why the application was down.. But have no idea how to do this! Can somebody please help me?

解决方案

Simply use heroku logs to display the last 100 lines of your logs.

Or to tail the logs in real-time: heroku logs -t

Heroku only saves the last 1500 lines of logs, which you can access using heroku logs -n 1500. If you want more logging, check out Heroku add-ons like Logentries or Papertrail.

这篇关于Heroku:你如何检查Heroku错误日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆