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

Documentation: need documentation for new stack log rotation

    XMLWordPrintable

Details

    Description

      Currently, there is no documentation for the process of log rotation on new stack. For reference, here is the information gathered on the subject for the wIT support ticket that originated this issue:

      eZ Publish uses the Monolog component to log errors, and it has a RotatingFileHandler that allows for file rotation. According to their documentation, it "logs records to a file and creates one logfile per day. It will also delete files older than $maxFiles". But then, their own recommendation is to use "logrotate" instead of doing the rotation in the handler as you would have better performance. More details here:
      
      https://github.com/Seldaek/monolog
      http://linuxcommand.org/man_pages/logrotate8.html
      
      If it is decided to use monolog's handler, it can be configured in /ezpublish/config/config.yml.
      
      Example:
      
      monolog:
          handlers:
              main:
                  type: rotating_file
                  max_files: 10
                  path: "%kernel.logs_dir%/%kernel.environment%.log"
                  level: debug
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 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 - 2 hours
                2h