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

Additivity cannot be disabled through log4php.properties ini file.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Code
    • None
    • PHP 5.3 Windows

    Description

      The code in LoggerConfiguratorIni that parses the additivity setting does a check on the value of the config option to see if it is empty() before it applies it - since this option has previously been parsed by parse_ini_file any falsey values will not pass this check, so additivity cannot be disabled.

      I've attached a patch which removes the check. Additivity is still on by default should the option not be set, so everything seems to work as normal otherwise.

      Attachments

        1. additivity_patch.patch
          0.9 kB
          Craig Marvelley

        Activity

          People

            Unassigned Unassigned
            craigmarvelley Craig Marvelley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: