Keeping the size of log files


During development, I see the size of development.log / test.log is
increasing forever. Is it possible to set the limit of the size?

I see that I can run rake log:clear occasionally, but I just wanna
ignore the files where possible.


You could always just have rake log:clear run automatically every so
often using a cronjob. That way you can ignore them, and they won’t get
too big.

For info on cronjobs:

The second link is actually mostly about rake tasks, but its got a great
example of how to run a rake task with a cronjob.

Of course, there’s probably some better solution than mine, which I’m
sure someone else will post :slight_smile: