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!

VN:F [1.9.22_1171]
Rating: 5.0/5 (2 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
Clearing All Rails Log Files with Rake Task, 5.0 out of 5 based on 2 ratings
Facebook Twitter Email

Leave a Reply