I was trying to troubleshoot a problem on my site and went to look at the
system.log file and it was over 1GB.
exception.log wasn't as big but it got me thinking:
How do you limit the size of the logging files for Magento?
Follow this i think it will help you to solve your issue :-
now add the following to the
execute your configuration now:
logrotate -f /etc/logrotate.d/magento-logrotate.conf
The most interesting is: what is in your log files?
Generally, the log files contain notifications, warnings and errors. When I have finished building a Magento webshop or a new module, one of my personal requirements is to have nothing appear in the logs when running/using this shop or module. If something would appear, then something should be improved (notices) or is terribly wrong (errors).
To answer your question of how to limit the size of
exception.log files: fix the problems that are described in those files. These files aren't there for nothing.
logrotate (suggested by Manish Kumar) is a great thing too ;)