[ 
https://issues.apache.org/jira/browse/LOG4PHP-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Habunek resolved LOG4PHP-180.
----------------------------------

    Resolution: Fixed
    
> Remove $_ENV and $_SERVER access from LoggerMDC
> -----------------------------------------------
>
>                 Key: LOG4PHP-180
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-180
>             Project: Log4php
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 2.2.1
>            Reporter: Ivan Habunek
>            Assignee: Ivan Habunek
>             Fix For: 2.3.0
>
>
> 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}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to