Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-3219

When using scan feature in logback.xml the ig.instance.dir property is lost on reload

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0, 5.5.0, 6.0.0, 6.1.0, 6.5.0
    • 5.5.1, 6.5.0, 7.0.0-micsvc-1.0.0, 7.0.0
    • Core
    • IG making use of a logback.xml configured to make use of the scan feature to reload the logging configuration when it changes.
    • 2

    Description

      When setting up an example logging configuration to demonstrate more focused logging of capture decorators it was noticed that when the scan feature is enabled in the logback.xml file that the ig.instance.dir property is lost the first time the logback.xml file is reloaded.

      If you also enable debug feature when setting up scanning:

      <configuration scan="true" scanPeriod="5 seconds" debug="true">

      you see log entires like:

      11:20:20,395 |-INFO in c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@2042919202 - Will use the pattern ig.instance.dir_IS_UNDEFINED/logs/route-99-default-%d\{yyyy-MM-dd}.%i.log for the active file
      

      This appears to be as a result of the context being reset which also removes the existing properties.

      11:20:15,537 |-INFO in ReconfigureOnChangeTask(born:1541024365528) - Detected change in configuration files.
      11:20:15,537 |-INFO in ReconfigureOnChangeTask(born:1541024365528) - Will reset and reconfigure context named [default]
      11:20:15,537 |-INFO in ReconfigureOnChangeTask(born:1541024365528) - Detected change in configuration files.
      11:20:15,537 |-INFO in ReconfigureOnChangeTask(born:1541024365528) - Will reset and reconfigure context named [default]
      

      Attachments

        Activity

          People

            markdr Mark de Reeper
            markdr Mark de Reeper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: