Heroku: How can you check Heroku error logs?
source link: https://www.codesd.com/item/heroku-how-can-you-check-heroku-error-logs.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Heroku: How can you check Heroku error logs?
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.
Related Articles
How can you check from an 'ls' output in UNIX if each item in the results is a directory or a file
How can you check a #hash in a URL using JavaScript?
How can you check the use of Quota API in GAE?
How can I check for errors in CRUD operations using GORM?
In Delphi, how can you check whether an IInterface reference implements a derived interface, but not explicitly supported?
In the WPF bidirectional binding, how can you check if it was a user interface or ViewModel element that triggered the link change?
Is it possible that a JAR file damages your system and how can you check what it does?
How can I see the error log (logcat) for Android in Eclipse?
How can I check the errors of the previous statement in a MySQL script?
How can you check with NHibernate if there is already an object in the database with the given identifier?
How can you verify that a jQuery plugin is already linked to a DOM node?
How do you write the error by checking a part of a method to make it readable and susceptible to error?
How can you test an SSL client library to correctly check the certificate of the server it connects to?
How can I check the validity of an wsdl because I got IllegalAnnotationsException?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK