Mega Code Archive

 
Categories / Ruby / Development
 

Start the log over whenever the log exceeds 100 megabytes in size

require 'logger' Logger.new('application.log', 20, 'daily')