ActionController::Base.session_options[:tmpdir] = '/tmp'
ActionController::Base.session_options[:prefix] = 'dbx_margin.'
config.log_path = "/tmp/dbx_margin_#{ENV['RAILS_ENV']}.log"
To set log rotate options in config:
config.logger = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log", 5, 104857)
This will span logs in to 5 files and recycle them in 10mb span.
Some times I just want to be able to output my data to a seperate log file so I could get dipper analysis of data to do that I can do:
l = Logger.new(RAILS_ROOT + "/log/custom_log_file.log")
l.debug("test")