I'm running a script that accesses Rails models via script/runner. I
want to accumulate the log message in a different logfile to avoid
polluting the development/test/production.log files. I've tried both to
ActiveRecord::Base.logger = Logger.new(filename)
ActionController::Base.logger = Logger.new(filename)
logger = = Logger.new(filename)
In all cases, the log messages continue to appear in the
Any pointers would be appreciated.