Various processes associated with your account store log files in ~/logs (and ~/domains/…/logs) during normal operation . While useful, if left unchecked these log files can quickly grow to use up all available space. In order to avoid this, log files can be automatically compressed and deleted through a process known as log rotation.
By default, Apache is the only process which will store log files under your account's home directory. Specifically, the files ~/logs/access_log and ~/logs/error_log, as well as their counterparts for any subdomains used, are created by Apache.
Shared accelerators are configured to automatically rotate the access_log daily at approximately 0:00 GMT. Archived copies of this file are retained for 120 days. This cannot be disabled or modified.
The error_log file, however, is not rotated automatically. Since error logging is disabled by default, this is not normally a problem. However, if you have enabled error logging over a long period of time, you will need to manually create a rotation task for this file using the instructions in the next section.
If you have any other processes which create log files, such as Procmail or a Ruby on Rails application, you will want to create a custom log rotation task. This can be done by following the following steps: