Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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)