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

Logfiles are not stored separately for every Siteaccess

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • None
    • Misc
    • None
    • Version: 3.8
      PHP Version: 4.4.2
      Webserver: apache 2.2
      Database: mysql 5

    Description

      If eZpublis is set up for several sites you want to have for every site special logfiles.
      In site.ini there is a Variable called "LogDir" but this isn't used to store the logfiles under $VarDir/$LogDir

      To solve the problem i updated the index.php for our installtion. Hope you can fix this in future releases of eZ publish.
      Best Regards
      Felix Woldt

      >> updated code of index.php

      /*!
      Reads settings from site.ini and passes them to eZDebug.
      */
      function eZUpdateDebugSettings()
      {
      $ini =& eZINI::instance();

      /* New Code from Felix Woldt 31.5.2006
      =======================================*/
      $deb =& eZDebug::instance();
      // The logdir for the actual siteaccess e.g. var/siteaccess/log/
      $logDir = $ini->variable( "FileSettings", "VarDir") ."/". $ini->variable( "FileSettings", "LogDir") ."/";

      // set the logdir in the Debug object
      // a better way is to write a small function in ezdebug.php to do this
      $deb->LogFiles = array( EZ_LEVEL_NOTICE => array( $logDir,
      "notice.log" ),
      EZ_LEVEL_WARNING => array( $logDir,
      "warning.log" ),
      EZ_LEVEL_ERROR => array( $logDir,
      "error.log" ),
      EZ_LEVEL_DEBUG => array( $logDir,
      "debug.log" ) );

      /* New Code - END - from Felix Woldt 31.5.2006
      ===============================================*/

      ...
      }

      Attachments

        Activity

          People

            unknown unknown
            4d91e976-d41f-487b-ae85-f7216bd06dac@accounts.ibexa.co Felix Woldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: