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

Using monitorInterval with YAML config file format causes JSONParseException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.2, 2.1, 2.2
    • 2.3
    • Configurators, Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: