Greg Olson opened issue #1: Watcher takes longer to return new data as file is added to. at Jacques Desodt / easy-log-watcher

Greg Olson
2018-09-29T00:07:13Z

In experimenting with easy-log-watcher, it appears that when the end of the log I'm watching is reached by the parser, it starts over at the beginning of the log. Because of this it reports the same event(s) from the log over and over. I have written code to record the timestamp of the events I'm interested in when I get them back from easy-log-watcher, and my code will now ignore events that are not newer than the last time it saw an event I'm interested in. But, my solution is not perfect. As the log file is added to, it takes longer and longer to go through the whole log each time it loops over it. Is there a way to prevent the watcher from starting over at the beginning of a log file when it reaches the end of a file and have it just wait until a new event is added to the log, and then just test each newly added event to see if it fits what I have easy-log-watcher looking for?