Source

multitail /

Filename Size Date modified Message
41 B
19 B
371 B
1.9 KB
577 B

Python generator which implements tail -f-like behavior, with support for tailing multiple files.

from multitail import multitail
for fn, line in multitail('/var/log1', '/var/log2', '/var/log3'):
    print '%s: %s' % (fn, line)