globtailer

A generator that yields lines from the most recently modified file matching a glob pattern


Keywords
generator, tail
License
MIT
Install
pip install globtailer==0.1.1

Documentation

python-globtailer

https://secure.travis-ci.org/msabramo/python-globtailer.png

The main class is FileTailer, a generator that yields lines from the most recently modified file matching a glob pattern.

Example:

from globtailer import FileTailer

tailer = FileTailer("/path/to/*.log")

for line in tailer:
    print(line)