tailx, 带颜色的 `tail -f`, 更好看的查看日志
Project description
tailx
带颜色的 tail -f
,更好看的查看日志。
安装
pip install tailx
用例
tailx [文件路径] [-no] [--nocolor] [-n Num] [-f REGEX] [--filter REGEX] [-h] [--help]
查看帮助
tailx -h
tailx --help
彩色输出(默认)
tailx path/to/file.log
无颜色输出
tailx path/to/file.log -no
tailx path/to/file.log --nocolor
修改默认行数
tailx path/to/file.log -n 10
修改默认行数
tailx path/to/file.log -n 10
过滤输出(支持正则)
tailx path/to/file.log -f "INFO"
tailx path/to/file.log --filter "SUCCESS"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tailx-0.1.5.tar.gz
(2.3 kB
view details)
Built Distribution
tailx-0.1.5-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file tailx-0.1.5.tar.gz
.
File metadata
- Download URL: tailx-0.1.5.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.18.1 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 115cc0395dcd61a24656e5fc05755440536dfba4c2937306485f5817a6dc38a3 |
|
MD5 | 532fd4e7d22b371daa23ad3e78a9c0fd |
|
BLAKE2b-256 | 6ce4ac915d86cd2f64e7508be5a47f4b5ade3408fca077a387aeb252e9bc6902 |
File details
Details for the file tailx-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: tailx-0.1.5-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.18.1 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ad3a0e9a69e7353e7681d68c9b6144175ae2b8c4ce4b2997da557902a17ce6 |
|
MD5 | 9e4151fb4e624e70a56cb240f69ae6d7 |
|
BLAKE2b-256 | 0472e4530b469cc03e0ae7424a99de72d274d392666c90f4d4b2ffab0aade14e |