/ Published in: Ruby
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Rotates 5 logfiles of about a meg each config.logger = Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 5, 1048576)