Heroku: How can you check Heroku error logs?

I have a PHP application on a free Heroku account. Today, for no apparent reason, I got the Heroku application error screen for about an hour. There is no downtime on the Heroku Status Report page.

I would like to check the logs to find out why the application was not available. But I don’t know how to do it! Can someone please help me?

+43
logging heroku application-error
Jan 23 '14 at 10:11
source share
4 answers

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

Or bind logs in real time: heroku logs -t

Heroku only saves the last 1,500 lines of logs that can be accessed with heroku logs -n 1500 . If you want more registration, check out Heroku add-ons such as Logentries or Papertrail.

+57
Jan 23 '14 at 15:35
source share

$ heroku logs -t --app app-name

This gives you all current logs (adding logins will be used)

+16
Jun 05 '15 at 5:48
source share
 heroku logs --tail 

With the command with the inscription, you can see the continuous log of the hero.

+11
Feb 04 '15 at 10:39
source share

to check all logs in heroku console

config.logger = Logger.new (STDOUT) config.logger.level = Logger :: DEBUG

put these two lines inside the environment where you are running the heroku application (e.g. production.rb)

after that it is registered here: hero's logs -t You can also check detailed logs, as well as errors.

+1
Apr 29 '16 at 9:59 on
source share



All Articles