Fixes #12. Since there are a lot of parameters now I decided to switch to a builder pattern for creating the DirectoryWatcher.
The default logger when using the builder is still LoggerFactory.getLogger(DirectoryWatcher.class) but I'm considering maybe using a NOPLogger by default and providing an easy way to configure the static logger if you want. Open to change it based on feedback.
I also updated the better-files watcher to allow configuring file hashing and the logger.
Fixes #12. Since there are a lot of parameters now I decided to switch to a builder pattern for creating the
DirectoryWatcher
.The default logger when using the builder is still
LoggerFactory.getLogger(DirectoryWatcher.class)
but I'm considering maybe using aNOPLogger
by default and providing an easy way to configure the static logger if you want. Open to change it based on feedback.I also updated the better-files watcher to allow configuring file hashing and the logger.