A beautiful, keyboard-driven TUI log file explorer for the terminal
Project description
logdiver
A beautiful, keyboard-driven TUI log file explorer for the terminal.
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
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
logdiver-0.1.0.tar.gz
(9.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 logdiver-0.1.0.tar.gz.
File metadata
- Download URL: logdiver-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65be897431fab3c7e980537f43123f5bf4ed4a4cebdc71ab1c05dcd3ea273680
|
|
| MD5 |
d6d91f0bf281e2a4488652d4302338dc
|
|
| BLAKE2b-256 |
e9db434b4c497f4fe8c125acfebf297596a6b0ae2c47d9d2c2f62b60c90e98b8
|
File details
Details for the file logdiver-0.1.0-py3-none-any.whl.
File metadata
- Download URL: logdiver-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58d1c9ec9ad1cdb5c81323934823b36c10410ece724f3d5e78df88717f923dff
|
|
| MD5 |
dc29ab78b02f5021274be7b08675d9b4
|
|
| BLAKE2b-256 |
5e7e75fbfaaca90afd36a25a6645b784c58aa6730d4762e3a5fa4e50b7f449fc
|