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

LoggerConfiguratorPhp does not appear to respect appender file property from config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Code
    • None
    • all

    Description

      When setting a log file path in an appender block within the php config array, the LoggerConfiguratorPhp::doConfigure does not respect this property.

      I have resolved the issue by adding the following code to the LoggerConfiguratorPhp class after line #80:

      if(isset($appenderProperties['file']) && method_exists($appender, 'setFileName')) {
      $appender->setFile($appenderProperties['file'], true);
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            peterchapman Peter Chapman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: