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(printsxto screen) -
action: moving/rotating (supported)
touch log2.txt ; echo "y" > log2.txt ; mv log2.txt log.txt(printsyto screen) -
action: overwritng in-place (not supported):
echo "z" > log.txt(zis lost)
Implementation
watchlogs uses the tailf library to monitor OS events.
Dependencies
Python >= 3.6seaborncoloredtailfpsutil
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file watchlogs-0.1.3.21.tar.gz.
File metadata
- Download URL: watchlogs-0.1.3.21.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1501e2c3d0a0754910d168e783609f4a74ca6817ec392447a2f90d9d042a9ce
|
|
| MD5 |
fe713cf2fd635695ffdb170363dc8a47
|
|
| BLAKE2b-256 |
5e80fb2d83b9bfda89bfeba657aadb5de98df5f5923fa62c2ef014289d5fb277
|
File details
Details for the file watchlogs-0.1.3.21-py3-none-any.whl.
File metadata
- Download URL: watchlogs-0.1.3.21-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e2de8ddd9ee8d60f1a8912d44f4174482b7f7e7858d20c476b1181bd6af247b
|
|
| MD5 |
0fde40ff355ffc2ed8df0b5a3a61798a
|
|
| BLAKE2b-256 |
20077e1ec0df1e212d9b290dcd458522c72ea5dbfdc3ac86c815bd19429254d3
|