bgreenlee / pygtail

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
248 stars 79 forks source link

How can I use --read-from-end when using for line in Pygtail("some.log") #54

Open beyondmeat opened 4 years ago

beyondmeat commented 4 years ago

I'm using this in a script:

for line in Pygtail("some.log"):

How can I specify the options?

wasimbaig commented 4 years ago

for line in Pygtail("some.log", read_from_end=True): ...