A colorful CLI log viewer with filtering and follow mode
Project description
logpeek
A colorful CLI log viewer with filtering and follow mode.
logpeek app.log
logpeek app.log --level ERROR
logpeek app.log -f -n 20
logpeek app.log -i "database" -e "debug"
cat app.log | logpeek
Install
pip install logpeek
# or
uv add logpeek
Usage
Usage: logpeek [OPTIONS] [FILE]
logpeek — colorful log viewer
Read a log FILE (or stdin) and pretty-print it with color-coded levels.
Options:
--version Show the version and exit.
-f, --follow Follow file (like tail -f).
-n, --lines INTEGER Show last N lines before following (use with -f).
-i, --include TEXT Only show lines containing this text.
-e, --exclude TEXT Hide lines containing this text.
--level [DEBUG|INFO|WARNING|ERROR|CRITICAL]
Only show lines at this log level.
--no-color Disable colored output.
--help Show this message and exit.
Log level colors
| Level | Color |
|---|---|
| DEBUG | Cyan |
| INFO | Green |
| WARNING | Yellow |
| ERROR | Red |
| CRITICAL | Magenta |
License
MIT
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
logpeek-0.1.1.tar.gz
(4.1 kB
view details)
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 logpeek-0.1.1.tar.gz.
File metadata
- Download URL: logpeek-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8496eff0f3821d5cb36257ad91542b3adf200795b0acb8307f011c1bcb22c09a
|
|
| MD5 |
332da965183efd81d93d86e0bad80d0f
|
|
| BLAKE2b-256 |
0a8649616e5e7f55f52a1b790c9a0ffbe6ac884e4ce2bc635d7cf447e47f9e02
|
File details
Details for the file logpeek-0.1.1-py3-none-any.whl.
File metadata
- Download URL: logpeek-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6788c5b1fd43e2d6de22828f8a39c08d098898887ffd2886c2f28aaa4c2a3462
|
|
| MD5 |
1f4e053cf59566d17ec4c68907c28bd1
|
|
| BLAKE2b-256 |
77dd8d87e5d4380628c05abb6c39bdae8aaa96ab4ebbf71a8bfc81674152b390
|