Heroku:你如何检查Heroku错误日志?

编程入门 行业动态 更新时间:2024-10-28 09:17:16
本文介绍了Heroku:你如何检查Heroku错误日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

您的日志的最后100行。

或者实时查看日志: heroku logs -t

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错误日志?

本文发布于:2023-10-28 02:15:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1535209.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   日志   Heroku

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!