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

Add hint on enable file rotation in Docu #29

Closed Doca closed 8 years ago

Doca commented 8 years ago

It took me some minutes to find this out...so maybe thats saving some time for others...

bgreenlee commented 8 years ago

on_update takes a function to be executed on every update. See https://github.com/bgreenlee/pygtail/pull/23. True is not a valid value (False is just used to indicate the absence of a function; it actually should probably default to None instead).

What exactly is the issue you're seeing?

Doca commented 8 years ago

in my case it just wasn't working with rotating files...but with the settings set to True it was working lol... Have to dig a bit deeper into the code why this was happening