Documentation
¶
Overview ¶
Command log-viewer is a journalctl-style live log viewer composed from nine glyph components: log-stream, tabs, status-bar, key-hints, select, notification-toast, text-input, panel, and theme.
The demo synthesizes a steady stream of log entries across four sources (server, auth, ratelim, db) and lets the operator filter by level (tabs at the top), filter by source (popover via Ctrl-S), search by substring (slash key opens a text-input prompt), pause/resume the live feed (Space), and clear the buffer (Ctrl-L).
What runs on screen at once:
- status-bar at the top: live/paused mode, entry count, active filter
- tabs row: All / Info+ / Warn+ / Error+ level filter
- log-stream in the middle, scrollable
- key-hints at the bottom
- notification-toast tray, top-right
Overlays opened on demand:
- select: source filter (Ctrl-F)
- text-input + panel: substring search ('/')
Run it:
go run ./examples/log-viewer/
Quit at any time with Ctrl-C or q.
Click to show internal directories.
Click to hide internal directories.