Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-180

Remove $_ENV and $_SERVER access from LoggerMDC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.3.0
    • Code
    • None

    Description

      Since the pattern layout can now provide data from the superglobal arrays, including $_SERVER and $_ENV, this functionality is no longer necessary in the MDC.

      Currently you could use patterns like:
      %X

      {server.HTTP_HOST}

      %X

      {env.USER}

      From 2.3 it is possible to do:
      %s

      {HTTP_HOST}
      %e{USER}

      Or better:
      %server{HTTP_HOST}

      %env

      {USER}

      Attachments

        Activity

          People

            juice Ivan Habunek
            juice Ivan Habunek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: