Skip to main content

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 hashes)

Uploaded Source

Built Distribution

tailx-0.1.5-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page