pytailer icon indicating copy to clipboard operation
pytailer copied to clipboard

file rotate detect

Open kylege opened this issue 6 years ago • 6 comments

kylege avatar Mar 17 '18 13:03 kylege

This looks like the right approach to address #2. The test is not passing because the test is not using an actual file but a stringIO object (which has a file like interface). Is it important for tailer to work on file-like objects or is it okay for it just to work on files?

If it's okay to just work on files, then, I can fix up the tests.

If you want the test to pass on file-like objects like stringIO I can alter the code to handle that case.

fgregg avatar Nov 14 '18 15:11 fgregg

tailer should work on any file-like-object. One of the reasons it was created was to work on sockets and StringIO because normal tail does not.

six8 avatar Nov 14 '18 16:11 six8

Got it! Thanks.

fgregg avatar Nov 14 '18 16:11 fgregg

@six8, thanks for the quick response. I'm going to go with tailhead which is more oriented to files (and which builds on your great work here). Thanks again for the useful library.

fgregg avatar Nov 14 '18 17:11 fgregg

is the idea of adding this dead?

cunhar avatar Feb 01 '21 16:02 cunhar

I'm also curious if this idea is dead.

pboushy avatar Feb 26 '22 00:02 pboushy