Pod
Pod

Reputation: 968

Show heroku app logs in the browser in real time

I can do Heroku logs -tail --app myapp and see what goes on when things happen in the app.

Would there be a way to show the output of logs -tail in the browser in real time just like I can do with the Heroku client?

I know it is a strange question, anyone has an idea?

Cheers.

Upvotes: 4

Views: 2678

Answers (3)

Nathan Pena
Nathan Pena

Reputation: 317

heroku logs --tail is all you need to enter. I got this from the Heroku documentation.

Upvotes: 0

Gul
Gul

Reputation: 1767

you can use heroku client library for login and then heroku logs -t as system command to display the output on browser.

@heroku = Heroku::Client.new(account.email, account.password)
`heroku logs -t `

Hope this will help you.

Upvotes: 0

John Beynon
John Beynon

Reputation: 37507

You need to use something like Papertrail and then a syslog drain to send your heroku logs to them.

Upvotes: 2

Related Questions