Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.3, 4.1.0
    • Fix Version/s: Customer request, 5.0
    • Component/s: Misc
    • Labels:
      None

      Description

      Current code sets max log file size and number ina fixed way: in ezdebug.php

      const MAX_LOGFILE_SIZE = 204800; // 200*1024
      const MAX_LOGROTATE_FILES = 3;

      the ezbdeug methods setMaxLogSize and maxLogrotateFiles are never called anywhere. Same applies to eZLog

      I'd say these can either be gotten from ini settings, or from config.php...

        Issue Links

          Activity

          Hide
          Damien Pobel added a comment -

          Same as http://issues.ez.no/14040.
          It would be a nice enhancement by the way.

          Show
          Damien Pobel added a comment - Same as http://issues.ez.no/14040 . It would be a nice enhancement by the way.
          Hide
          Gaetano Giunta added a comment -

          Found a workaround for eZP 4.1 and up: just define

          $GLOBALS['eZDebugMaxLogSize'] = 2 * 1024 * 1024;
          

          in config.php file.

          In fact, I recommend to write by default, commented, values for that and $GLOBALS['eZDebugMaxLogrotateFiles'], so that admins can easily tweak them!

          Show
          Gaetano Giunta added a comment - Found a workaround for eZP 4.1 and up: just define $GLOBALS['eZDebugMaxLogSize'] = 2 * 1024 * 1024; in config.php file. In fact, I recommend to write by default, commented, values for that and $GLOBALS ['eZDebugMaxLogrotateFiles'] , so that admins can easily tweak them!
          Show
          Damien Pobel (eZ) added a comment - Fixed in ezpublish: master: http://github.com/ezsystems/ezpublish/commit/45389ec34d6bde6adbc7a3fd101bdc1b0c4bf72b
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA approved

          Show
          Paulo Nunes (Inactive) added a comment - QA approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Gaetano Giunta
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h