Rails production.log file is empty

后端 未结 2 1462
清酒与你
清酒与你 2020-12-17 18:48

I\'m using Rails 2.3.13 and in my environments/production.rb, I have:

config.log_level = :info
RAILS_DEFAULT_LOGGER = SyslogLogger.new(\'mysite-         


        
2条回答
  •  难免孤独
    2020-12-17 19:11

    Given how you set the logger, you should find a file named 'mysite-platform-production', not production.log, and it will be on the root directory of your project. If you want to find it in 'log/mysite-platform-production.log' you will have to do:

    RAILS_DEFAULT_LOGGER = SyslogLogger.new('log/mysite-platform-production.log')
    

提交回复
热议问题