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.