Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get complete production.log from a rails app in heroku?

I wanted to have a detailed look into my production.log, but heroku doesn't seem to store them. Does anyone else, have a solution for that problem. It would be nice to get it stored safely away. thanks in advance :)

like image 352
tabaluga Avatar asked Sep 02 '25 02:09

tabaluga


1 Answers

From the Heroku documentation you can see that their logging facility is limited to the last 100 lines whenever you read them back from the console.

If you have a requirement to keep and analyze all of your production logs then it looks like you will have to consider archiving them off-Heroku to, say, S3 or through EC2 logging server.

like image 128
bjg Avatar answered Sep 04 '25 17:09

bjg