Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3313

place php.log under data log and use log rotation

    XMLWordPrintable

Details

    • High
    • PHP error_log location moved to translate5 installation root folder /data/logs/ directory, with logs rotation enabled, if needed elsewhere overwrite the location in installation.ini
    • PHP error_log moved to translate5 installation root folder /data/logs/ directory, with logs rotation enabled, if needed elsewhere overwrite the location in installation.ini
    • -

    Description

      problem

      Currently the location of php.log file is either set by apache or by php.ini to default values.

      proposed solution

      We should have that in the area of the translate5 instance under data.

      There fore we should set in application.ini:

      phpSettings.error_log = APPLICATION_DATA "/logs/php.log"

      This is not tested but should work and set the php.log file correctly.

      Also log rotation should be setup. Invoked by our daily cron job by event binding - which must be checked after merging in the across hotfolder feature due refctoring in that area there.

      A log rotation lib is already included via composer (cesargb/php-log-rotation) and should be configured on data/logs/php.log file

      Attachments

        Activity

          People

            pavelperminov Pavel Perminov
            tlauria Thomas Lauria
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: