Details
-
Type: Improvement
-
Status: Won't Do
-
Priority: Minor
-
Resolution: Won't Do
-
Affects Version/s: 4.3.5
-
Fix Version/s: Unscheduled
-
Component/s: Core CiviCRM
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
Description
*.log files in ConfigAndLog can build up to many files of great size, particularly when *.log files are full of lines of "ran successfully" code from schedule reminders or civimail jobs that run every 15 minutes. In a recent site I saw 4 files each of 2GB in size, crashing the site.
The 'cleanup' scheduled job doesn't appear to delete *.log files. Performing an upgrade doesn't delete old *.log files either. While a sysadmin can delete these files in one or more ways, this seems like it should be CiviCRM's job to clean up after itself.
Suggested task: Delete *.log files older than an arbitrary number of days, such as 30. Provide location in the code to set a PHP variable or in the database to alter the number of days.