Ruby on rails Rails |如何在生产中查看实时服务器日志?

Ruby on rails Rails |如何在生产中查看实时服务器日志?,ruby-on-rails,logging,server,unicorn,production-environment,Ruby On Rails,Logging,Server,Unicorn,Production Environment,如何像在开发中一样在生产中查看live server日志 如果有帮助的话,我的应用程序在digitalOcean上。我使用unicorn作为我的生产服务器 当我执行tail-f log/production.log时,我只能看到像这样的一些迁移信息,但不能看到实时请求信息以及正在运行的SQL查询 同样在我的production.rb中,我将config.log\u level更改为:debug尝试将这些代码行添加到config/environments/production.rb: Rail

如何像在开发中一样在生产中查看live server日志

如果有帮助的话,我的应用程序在digitalOcean上。我使用unicorn作为我的生产服务器

当我执行
tail-f log/production.log
时,我只能看到像这样的一些迁移信息,但不能看到实时请求信息以及正在运行的SQL查询


同样在我的production.rb中,我将
config.log\u level
更改为
:debug
尝试将这些代码行添加到
config/environments/production.rb

Rails.logger = Logger.new(STDOUT)

config.logger = ActiveSupport::Logger.new("log/#{Rails.env}.log")
参考:


我也有同样的问题,等待回答!