Python on Heroku. Logging options?


I am using Flask on Heroku right now and I want to be able to log errors to a file (via FileHandler).

I don't think that's officially supported by heroku.

On heroku's logging page there's some mentioning of syslogs and drains, which seem pretty complicated to set up.

I want something quick and easy. Any recommendations?

10/14/2012 7:33:26 PM

Anything your app writes to stdout will end up in Heroku's consolidated log for your application, according to their docs, which you can then access with heroku log and the other tools. That's probably the quickest/easiest way to get logs from your app to a place you can look at them.

10/14/2012 7:38:07 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow