Rotating Logfiles


/ Published in: Ruby
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # Rotates 5 logfiles of about a meg each
  2. config.logger = Logger.new("#{RAILS_ROOT}/log/#{ENV['RAILS_ENV']}.log", 5, 1048576)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.