Rami Ma
Rami Ma

Reputation: 1015

How to read heroku logs?

Could somebody tell how to read heroku logs? I mean, when I write heroku logs --tail or heroku logs | grep -i error, what can I get from that? How to understand the errors I got? And if there is an article explaining that, I would appreciate it. I looked for an article about that, and haven't found! Thank you!

Upvotes: 0

Views: 266

Answers (1)

Beppe C
Beppe C

Reputation: 13973

Heroku aggregates several categories of logs, see https://devcenter.heroku.com/articles/logging

The application logs are created by your app, you can typically set the level and decide what to log in your code. It is a good idea to catch/log exception.

Error codes generated by Heroku are also useful https://devcenter.heroku.com/articles/error-codes

Upvotes: 1

Related Questions