Hey Guys,
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 no avail:
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 development/test/production.log file.
Any pointers would be appreciated.
Sonny.