Heroku在日志中输出太多

时间:2013-02-19 17:21:19

标签: ruby-on-rails-3 logging heroku

自从我开始使用自己的proc文件后,我在日志中看到了无意义的(对于生产环境)数据,例如

Feb 19 09:10:09 myapp app/web.1:  Processing by PagesController#launch as */* 
Feb 19 09:10:09 myapp app/web.1:    Rendered devise/sessions/_signin.html.erb (4.4ms) 
Feb 19 09:10:09 myapp app/web.1:    Rendered pages/launch.html.erb within layouts/application (20.0ms) 
Feb 19 09:10:09 myapp app/web.1:    Rendered layouts/_suggest.html.erb (0.7ms) 

如何禁用此类渲染日志(属于开发而非生产)?

1 个答案:

答案 0 :(得分:0)

考虑将logging add-ons中的一个添加到您的应用中。这样可以更轻松地分析日志并对其进行操作。