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

Add method org.apache.logging.log4j.core.util.WatchManager.reset(File) and reset()

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0
    • Component/s: None
    • Labels:
      None

      Description

      Add methods org.apache.logging.log4j.core.util.WatchManager.reset(File) and org.apache.logging.log4j.core.util.WatchManager.reset():

          /**
           * Resets all file monitors to their current last modified time. If this manager does not watch any file, nothing
           * happens.
           * <p>
           * This allows you to start, stop, reset and start again a manager, without triggering file modified events if the a
           * watched file has changed during the period of time when the manager was stopped.
           * </p>
           * 
           * @since 2.11.0
           */
          public void reset()
      
          /**
           * Resets the file monitor for the given file being watched to its current last modified time. If this manager does
           * not watch the given file, nothing happens.
           * <p>
           * This allows you to start, stop, reset and start again a manager, without triggering file modified events if the
           * given watched file has changed during the period of time when the manager was stopped.
           * </p>
           * 
           * @param file
           *            the file for the monitor to reset.
           * @since 2.11.0
           */
          public void reset(final File file)
      

        Attachments

          Activity

            People

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              garydgregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: