Alex Rivera | Logout

Log rotation/clearing in Ruby on Rails

Asked 2009-07-20T16:15:56.983
10

How can I setup the automatic cleanup on test.log and development.log in ruby on rails?

Is there a setting to automatically delete dev and test logs on server start and tests run?

Edit
Report

1 Answer

16

rake log:clear is a rake task that truncates all files that match log/*.log to zero bytes. You could call it in your server start and run tests tasks.

answered 2009-07-20T18:26:29.497

Your Answer