Details
-
Improvement
-
Resolution: Obsolete
-
Medium
-
4.3.0alpha1
-
None
Description
allow the administrator to use, for instance 'logrotate.d', to rotate eZ Publish logs.
basically, we just need to add a setting for disabling logrotation (default = enabled).
the the administrator just sets up logrotate.d to handle the eZ Publish logs.
a possible consequence that needs to be considered:
since extensions may create and append data to their own log files (hopefully stored under $logDir), there is a chance that the administrator may not be aware of this file, and fail to configure logrotate.d to handle this 'extra' log file.
a solution to this scenario would be to allow disable/enable logrotation per log file or module (or php class), whichever is more feasible.
the effect will be that if you add a module that generates log output to a custom file, then it will be rotated by eZ Publish by default, unless the administrator specifically disables the built-in rotation for that file.