Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-976

Using monitorInterval with YAML config file format causes JSONParseException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.1, 2.2
    • Fix Version/s: 2.3
    • Component/s: Configurators, Core
    • Labels:
      None

      Description

      If, when using the YAML configuration file format, the monitorInterval config attribute is configured in order to automatically reconfigure logging, a JSONParseException is thrown when the configuration file is reloaded after the file changes.

      This appears to be because the YamlConfiguration class does not override the reconfigure() method from the Reconfigurable interface. The base class implementation is called, which assumes a JSON-style grammar instead of YAML.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              quinnm3 Matt Quinn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: