A simple, colourful logfile watcher
Project description
watchlogs
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.
Usage
watchlogs --log_files /path/to/log1.txt,/path/to/log2.txt,....
Installation
Install via pip install watchlogs
. If you prefer to hack around with the source code, it's a single python file.
Behaviour
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
(printsx
to screen) -
action: moving/rotating (supported)
touch log2.txt ; echo "y" > log2.txt ; mv log2.txt log.txt
(printsy
to screen) -
action: overwritng in-place (not supported):
echo "z" > log.txt
(z
is lost)
Implementation
watchlogs
uses the tailf library to monitor OS events.
Dependencies
Python >= 3.6
seaborn
colored
tailf
psutil
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for watchlogs-0.1.3.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d061bacc12795f821ba447ab18deb26aa48b5c7c29fcd4f4685d3eec80b19113 |
|
MD5 | 2d04b61df24ad0cbf3535015e5fe0f01 |
|
BLAKE2b-256 | 0a250eb5aed748be81c3e8e91a7ea74a3f8a21445c8ac60932f1928198e6ce32 |