rogerc / file-stream-rotator

NodeJS file stream rotator
MIT License
142 stars 68 forks source link

Emitting "new" event when the logfile is re-created after deletion so that the watcher is readded #83

Closed chneil closed 2 years ago

chneil commented 3 years ago

Issue: when watch_log is set to true, the log file is only recreated once. E.g log file is created > log file deleted > watcher detects deletion and recreate the file however the log file is not recreated on any subsequent deletion.

rogerc commented 2 years ago

@chneil thanks for the PR. It will be deployed to NPM in the next few days.