Keeping the size of log files.

Hi,

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.

-T

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:

http://www.aota.net/Script_Installation_Tips/cronhelp.php3

http://www.railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial#do_stuff

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: