Sync rails console output to Heroku logs

  Kiến thức lập trình

Similar to this question, but I’m not interested in having the commands, only the logged results. I’m not sure if this is more a Rails question or a Heroku question, but I’d like it if I could look at our Heroku logs and see logged queries from the console as well as from our application.

Is there any way to tell Rails to pipe queries to the logs when in the console?

LEAVE A COMMENT