[ 
https://issues.apache.org/jira/browse/LOG4J2-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Gregory closed LOG4J2-2206.
--------------------------------
    Resolution: Fixed

In git master.

> Add method org.apache.logging.log4j.core.util.WatchManager.reset(File) and 
> reset()
> ----------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2206
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2206
>             Project: Log4j 2
>          Issue Type: New Feature
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>            Priority: Major
>             Fix For: 2.11.0
>
>
> Add methods {{org.apache.logging.log4j.core.util.WatchManager.reset(File)}} 
> and {{org.apache.logging.log4j.core.util.WatchManager.reset()}}:
> {code:java}
>     /**
>      * 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)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to