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

[LOG4PHP] Constant in Xml configuration files are no longuer evaluate ?

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0, 2.2.1
    • Fix Version/s: 2.3.0
    • Component/s: Code
    • Environment:

      php 5.3.13, os linux centos

      Description

      Hello,

      I'm looking to upgrade the log4php version on my company.
      We use actually log4php 2.1.0 and i want to upgrade to 2.2.1.

      Problem is that the definition of appenderFile seems to no longer support constant in filePath :

          <appender name="SebFileLog" class="LoggerAppenderFile">
              <layout class="LoggerLayoutPattern">
                  <param name="conversionPattern" value="%d{Y/m/d H:i:s,u} %-5p [%c] - %m%n" />
              </layout>
              <param name="file" value="${LOG_PATH}seb.log" />
              <param name="append" value="true" />
          </appender>
      

      On 2.1.0, my ${LOG_PATH} is correctly evaluated, but on 2.2.1 not.

      As i found, when we call setFile on appenders/LoggerAppenderFile.php, it's setString that is called.

      Is this a removed feature ?
      Is there any other way to do this?

      Thanks !
      Sébastien

        Attachments

          Activity

            People

            • Assignee:
              juice Ivan Habunek
              Reporter:
              sebastien.barthelemy Sébastien Barthélemy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: