Clearing All Rails Log Files with Rake Task
In order to clear all of your Rails log files development.log, production.log, server.log and test.log with a rake task, type:
rake log:clear
This is mainly useful while under development. Be careful with this as it will clear out your production.log file as well!
Clearing All Rails Log Files with Rake Task,