Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logpeek-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for logpeek-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8496eff0f3821d5cb36257ad91542b3adf200795b0acb8307f011c1bcb22c09a
MD5 332da965183efd81d93d86e0bad80d0f
BLAKE2b-256 0a8649616e5e7f55f52a1b790c9a0ffbe6ac884e4ce2bc635d7cf447e47f9e02

See more details on using hashes here.

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

Hashes for logpeek-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6788c5b1fd43e2d6de22828f8a39c08d098898887ffd2886c2f28aaa4c2a3462
MD5 1f4e053cf59566d17ec4c68907c28bd1
BLAKE2b-256 77dd8d87e5d4380628c05abb6c39bdae8aaa96ab4ebbf71a8bfc81674152b390

See more details on using hashes here.

Supported by

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