如何在生产模式下启用数据库日志记录? (Rails v2.3.8)

我的生产服务器上只有一些奇怪的东西,我需要能够在开发模式下查看所有数据库查询。

我确信这是一个小配置调整,但我找不到任何解决方案。

在Rails 2.x中,在environment.rb文件中,您有:

# Force all environments to use the same logger level # (by default production uses :info, the others :debug) # config.log_level = :debug 

在Rails 3.x应该是类似的东西。