Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-530

Need to scan included files

    XMLWordPrintable

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 0.9.28
    • None
    • None
    • None

    Description

      I'm using the following configuration and I'm looking for a method to scan included files.

      <configuration scan="true" scanPeriod="10 seconds">
      <insertFromJNDI env-entry-name="java:comp/env/logback-file" as="logback-file" />
      <contextName>lala</contextName>
      <include file="${logback-file}" />
      </configuration>

      Once scan directive is used, logback is going to rescan this file every 10 seconds whether its modification date has changed.

      The issue is that I have to overwrite the previous file in order to rescan the target ${logback-file}.
      I suggest adding an attribute in the configuration marker in order to force logback to scan included files . It could be something like that:

      <configuration scan="true" scanPeriod="10 seconds" scanIncluded="true">
      .....
      </configuration>

      In order to process this task, at each scan logback should memorize the reference to the included files, and their latest modification date. Consequently, every 10 seconds, logback check the whole list of files and rescan the main file if something has changed.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            lala Geoffrey
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: