Heroku 调试 [英] Heroku debugging
本文介绍了Heroku 调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Heroku 构建应用程序,但遇到了一些问题.我想像使用 rails 服务器一样调试一些内容:
I am building an application with Heroku and having some problems. I want to debug some content like I do with rails server:
logger.debug '...'
logger.debug '...'
我怎样才能在 Heroku 中做到这一点,以便我可以在 heroku 日志中看到调试?(或其他任何东西..)
How can I do that in Heroku, so I can see the debugging in heroku logs? (or anything else..)
谢谢!
推荐答案
详情请见:http://devcenter.heroku.com/文章/日志
还要确保为 Rails 应用设置正确的日志记录级别:http://blog.sethladd.com/2005/11/调整日志级别在 ruby-on-rails.html
Also make sure you set the right Logging level for your Rails app: http://blog.sethladd.com/2005/11/adjust-log-level-in-ruby-on-rails.html
这篇关于Heroku 调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文