Details
Description
I have noticed today that the site.ini[FileSettings].LogDir directive was only partially used.
This directive is supposed to determine the name/path to the directory where logfiles are written, as a subdirectory of site.ini[FileSettings].VarDir. The theorical situation would be:
[FileSettings]
VarDir=var/mysite
LogDir=log
This way, every log file should be written to var/mysite/log. However, eZLog (lib/ezfile/classes/ezlog.php) has 2 different methods for writing of log files, eZLog::write and eZLog::writeStorageLog, and only the second one uses this parameter. write() just uses var/log as a hardcoded default value, and it is not overwritten anywere.
This should be made consistent as soon as possible, as it makes it impossible to use different logs when using one eZ publish instance with multiple websites (each with separate DB / vardir).
It was already reported in 2006, see #008397
Attachments
Issue Links
- duplicates
-
EZP-8397 Logfiles are not stored separately for every Siteaccess
- Closed