adding logging support to watcher