Pygtail reads log file lines that have not been read. It will even handle log files that have been rotated. Based on logcheck's logtail2 (http://logcheck.org)
GNU General Public License v2.0
251
stars
79
forks
source link
Test renamecreate also when file is rotated to unknown (to pytgail) n… #42
logrotate (https://github.com/logrotate/logrotate) rotates file to some unknown file name (in real life scenario it rotates the file to different "archive/" directory
log file gets new entries
some new run of script uses pygail to read log file (that's why I'm "reopening" file using new pytgail object)
Currently pygtail is failing this test suite due to bug in pygtail not handling such case.
…ame and pygtail is freshly reading file.
This test is testing a case when:
Currently pygtail is failing this test suite due to bug in pygtail not handling such case.