Details
-
Improvement
-
Resolution: Duplicate
-
Medium
-
4.5.0
-
eZ Publish 4.5
Description
If you have an eZ Publish project with many siteaccesses, it can be difficult to determine which error/warning/notice in the log files belongs to which siteaccess.
This change allows it to define in logfile.ini whethere subfolders should be used or not (default is false so eZPublish's present behaviour is not affected).
If set to true, subfolders with the name of the current siteaccess are created and the logfiles are created/updated in these subfolders.
If you have three siteaccesses admin, website1 and website2, this will result in the following directory structure:
var/log/
admin/
debug.log
error.log
notice.log
warning.log
website1/
debug.log
error.log
notice.log
warning.log
website2/
debug.log
error.log
notice.log
warning.log
with each logfile only containing those events which took place in the according siteaccess.
I proposed an implementation at https://github.com/ezsystems/ezpublish/pull/157url