[ 
https://issues.apache.org/jira/browse/LOG4J2-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980490#comment-15980490
 ] 

Ralph Goers commented on LOG4J2-1031:
-------------------------------------

Here is what I posted on the mailing list at the time. 

"I have been working on the file watching of the scripts today. The more I work 
with it the less I like Java’s WatchService. Java makes no guarantees about how 
the service works. On my Mac it uses polling - but I don’t see any way to 
control the frequency. Furthermore, if you specify a file you will get an 
exception - it can only watch directories for changes.

As a consequence I am going to use the same logic we use for monitoring the 
configuration file but turn it into a general service. "




> Use Java 7's Watchservice to monitor configuration files and file rollover.
> ---------------------------------------------------------------------------
>
>                 Key: LOG4J2-1031
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1031
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 2.3
>            Reporter: Ralph Goers
>            Assignee: Ralph Goers
>
> Now that Log4j requires Java 7 we can begin to take advantage of more of its 
> features. One of these is the WatchService 
> -http://docs.oracle.com/javase/7/docs/api/java/nio/file/WatchService.html. 
> This could be used for monitoring changes to the configuration file(s) and by 
> the RollingFileAppender.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to