Satchel
Satchel

Reputation: 16724

How can I write to a log-file easily when deployed on Heroku?

While running on Heroku, I would like to be able to put key information via, say, puts or other such statement, to write to a log file.

But Heroku doesn't allow writing to a file, so what is a way to do this easily?

Upvotes: 1

Views: 1241

Answers (2)

tfe
tfe

Reputation: 34942

Anything you do would have to be done by interaction with the database, or via an HTTP interaction with an outside app. Those are the only ways to persist information as the platform stands right now. Personally if I had to have logging and Hoptoad (et. al.) wouldn't work, I'd log to the db. That's not a great way of doing things though.

Upvotes: 0

mipadi
mipadi

Reputation: 410652

Heroku recommends that you use an external service like Hoptoad or Get Exceptional.

Upvotes: 1

Related Questions