To configure Rails to rotate your log files while in the development and test environments, add the following to your development.rb
and test.rb
files found within /config/environments/
# Rotate logs every day. You can use 'daily', 'weekly' or 'monthly'.
config.logger = Logger.new("#{Rails.root}/log/#{ENV['RAILS_ENV']}.log", 'daily')
Found Here