A simple, colourful logfile watcher
watchlogs is a simple command line utility for watching multilpe log files and interleaving their contents to
stdout as each log is appended to. It aims to achieve the functionality of
tail -F, but with more colour.
watchlogs --log_files /path/to/log1.txt,/path/to/log2.txt,....
pip install watchlogs. If you prefer to hack around with the source code, it's a single python file.
watchlogs has the following behaviour when
log.txt is updated (assuming that
watchlogs --log_files log.txt has been run):
action: appending (supported)
echo "x" >> log.txt(prints
action: moving/rotating (supported)
touch log2.txt ; echo "y" > log2.txt ; mv log2.txt log.txt(prints
action: overwritng in-place (not supported):
echo "z" > log.txt(
watchlogs uses the tailf library to monitor OS events.
Python >= 3.6
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size watchlogs-0.1.3.16-py3-none-any.whl (5.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size watchlogs-0.1.3.16.tar.gz (3.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for watchlogs-0.1.3.16-py3-none-any.whl