Heroku调试 [英] Heroku debugging

查看:100
本文介绍了Heroku调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Heroku构建一个应用程序并遇到一些问题。
我想调试一些内容,就像我用rails server做的那样:


logger.debug'...'


如何在Heroku中执行此操作,以便在Heroku日志中查看调试情况? (或任何其他..)



谢谢!

解决方案

这里: http://devcenter.heroku.com/articles/logging



还要确保为Rails应用程序设置正确的Logging级别:
http://blog.sethladd.com/2005/11/adjust-log-level-in-ruby-on-rails.html


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 '...'

How can I do that in Heroku, so I can see the debugging in heroku logs? (or anything else..)

Thanks!

解决方案

Details here: http://devcenter.heroku.com/articles/logging

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆