我想让我的 rails 3 应用程序不将所有开发日志保存在 development.log 中,因为它使我的文件更大。

最佳答案

完全关闭它是一个非常糟糕的主意。您可以通过指定日志级别来减少事务,例如:

config.log_level = :info

在config/environments/development.rb文件中。对于各种选项,请参见此处:

http://guides.rubyonrails.org/configuring.html

关于ruby-on-rails-3 - 如何避免将 rails 3 应用程序保存在 development.log 中?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5713325/

10-10 03:39