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
Metadata
Release files for watchlogs 0.1.3.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| watchlogs-0.1.3.21.tar.gz | 4.2 kB | Without provenance | Details for watchlogs-0.1.3.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| watchlogs-0.1.3.21-py3-none-any.whl | Python 3 | none | any | Details for watchlogs-0.1.3.21-py3-none-any.whl |
Total release size: 9.9 kB
Release files / watchlogs-0.1.3.21.tar.gz
| Download URL | watchlogs-0.1.3.21.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1501e2c3d0a0754910d168e783609f4a74ca6817ec392447a2f90d9d042a9ce
|
|
BLAKE2b-256 checksum How to use checksums |
5e80fb2d83b9bfda89bfeba657aadb5de98df5f5923fa62c2ef014289d5fb277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / watchlogs-0.1.3.21-py3-none-any.whl
| Download URL | watchlogs-0.1.3.21-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e2de8ddd9ee8d60f1a8912d44f4174482b7f7e7858d20c476b1181bd6af247b
|
|
BLAKE2b-256 checksum How to use checksums |
20077e1ec0df1e212d9b290dcd458522c72ea5dbfdc3ac86c815bd19429254d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for watchlogs 0.1.3.21
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.