Open alfo opened 10 years ago
I can't reproduce this in production. Can you give your Rails version and run the following in console?
puts MultiLogger.get_rails_logger_class
puts Rails.logger
@lulalala Not OP, but I am having the same issue when deploying to a Heroku instance on Rails 4.1.7.
puts MultiLogger.get_rails_logger_class
ActiveSupport::Logger
=> nil
puts Rails.logger
#<Logger:0x007f13e617fcb8>
=> nil
+1 Also not the OP, but having the same problem (works in development but not production) and getting the same output as @kyledcline when putting the values you asked for.
Using Rails 4.2.3 and Ruby 2.1.6p336
Edit, should say this isn't a Heroku instance, I'm just deploying to a Centos server.
In development, everything works as expected. However, when I deploy to a Dokku instance, I have a problem that the method is not added to
Logger
.Steps to reproduce (
rails console production
):The log file
log/xxx.log
is created in production, but nothing is written to it other thanAny ideas?