tail
tail copied to clipboard
feat: fix file change(rename) line loss and duplication
#72
When we use tail to collect logs (starting from the beginning of the new file), during file renaming (when flush and rename events occur very close to each other), part of the old log file may not be collected (write event -> truncated event), and the new file may be collected twice (truncated (write -> truncated) and delete events occurring simultaneously). Therefore, an issue fix is proposed.