Enormous LOG files

Hi!

I just saw that my development.log file was 450 MB! Anything to do about
this ? Is there a way to turn on rotating-logs?

Thank you!
david

You rotate Rails logs just like any other server logs. Most systems
come with a log rotation program installed. For example, on Redhat
based systems the command is simply called ‘logrotate’ and it is
configured via per application configuration files located in
/etc/logrotate.d.

– Wes

Great tip, thank you Wes!

Wesley M. wrote:

You rotate Rails logs just like any other server logs. Most systems
come with a log rotation program installed. For example, on Redhat
based systems the command is simply called ‘logrotate’ and it is
configured via per application configuration files located in
/etc/logrotate.d.

– Wes