Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-10366

FileSettings.LogDir missused

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Medium Medium
    • 3.10.0, 3.8.10, 3.9.4
    • 3.6.11, 3.7.9, 3.8.6, 3.9.0, 3.9.1rc1
    • Misc
    • None
    • Operating System: Any
      PHP Version: 4.4.X
      Database and version: Any
      Browser (and version): Any

    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

        Activity

          People

            dp dp
            bd bd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: