Skip to main content

A beautiful, keyboard-driven TUI log file explorer for the terminal

Project description

logdiver

PyPI version Python License: MIT CI

A beautiful, keyboard-driven TUI log file explorer for the terminal.

Built with Textual and Rich.

     1 | 2024-01-15 10:00:00 INFO  Application started
     2 | 2024-01-15 10:00:01 DEBUG Initializing modules
     3 | 2024-01-15 10:00:02 WARN  High memory usage detected
     4 | 2024-01-15 10:00:03 ERROR Connection failed to database
     5 | 2024-01-15 10:00:04 INFO  Retrying connection...
     6 | 2024-01-15 10:00:05 CRIT  Fatal error in main process
     7 | 2024-01-15 10:00:06 INFO  Application shutting down

Installation

pip install logdiver

Usage

logdiver /var/log/syslog
logdiver /path/to/your/app.log

If no file is given, a file picker is shown.

Keybindings

Key Action
q Quit
r Reload file
t Toggle live tail mode
w Toggle line wrap
e Jump to next error
E Jump to previous error
g Jump to top
G Jump to bottom
/ Open filter bar
Esc Clear filter / close filter bar

Features

  • Color-coded log levels -- ERROR/CRITICAL in red, WARNING in yellow, INFO in cyan, DEBUG in dim white
  • Live tail mode -- Auto-scrolls as new lines are appended to the file
  • Regex filtering -- Filter lines by pattern with case-insensitive matching
  • Error navigation -- Jump between ERROR and CRITICAL lines with e/E
  • Line wrap toggle -- Switch between horizontal scroll and wrapped lines
  • Binary file detection -- Rejects binary files with a clear error message
  • Large file support -- Handles large log files efficiently
  • File picker -- Browse the filesystem if no file is given on launch

Requirements

License

MIT License. See LICENSE for details.

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

logdiver-0.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

logdiver-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file logdiver-0.1.1.tar.gz.

File metadata

  • Download URL: logdiver-0.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for logdiver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 99912e0335165a166ba032c3d556c9e38a5a4c43dc4c20d88223262866fb40ce
MD5 7e66fddba8fc836968b8d4738a8aecd6
BLAKE2b-256 faa2784d84c0e37dfedb1af00fa67ef9ff459a943c6cc95058143ce1b7e88070

See more details on using hashes here.

File details

Details for the file logdiver-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: logdiver-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for logdiver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d5b70ea51f2d255c9fb3472f302dc1ff33755af441dc31278b491c280ec0b4d
MD5 829ea84bec8d611305f683cbe9824ac4
BLAKE2b-256 04db7df010d336a92f429e5bd4db9ca5d6f3902e20cb0b9f6c5e3c5b8a1b7756

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