Answer the question
In order to leave comments, you need to log in
Separate log file for the controller. Rails?
There is a project
controllers<br>
admin<br>
application_controller.rb<br>
api<br>
application_controller.rb<br>
application_controller.rb<br>
ActiveRecord::Base.logger = Logger.new("#{Rails.root}/log/api.log")<br>
ActionController::Base.logger = Logger.new("#{Rails.root}/log/api.log")<br>
ActiveRecord::Base.logger = Logger.new("#{Rails.root}/log/production.log")<br>
ActionController::Base.logger = Logger.new("#{Rails.root}/log/production.log")<br>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question