We want to have a collection of controllers where we route logger output from all actions and downstream methods to a separate log file. This is a Rails 3 project. In Rails 2 we
Have you tried prepending an around_filter?
class MyController < ApplicationController
prepend_around_filter :set_logger
private
def set_logger
old_logger = Rails::logger
Rails::logger = Logger.new(Rails.root.join('log', "reports_controller.log"), 10, 1000000)
yield
Rails.logger = old_logger
end
end