{
  "id": 19187449,
  "title": "I created an interactive TUI log debugger in Python because grep and tail are driving me crazy.",
  "url": "https://urgent.news/2026/11/09/i-created-an-interactive-tui-log-debugger-in-python-because-grep-and",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-09T17:59:46.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/slimeopus/i-created-an-interactive-tui-log-debugger-in-python-because-grep-and-tail-are-driving-me-crazy-4cn5"
  },
  "original_language": "en",
  "account": "Creating an interactive TUI log debugger in Python became necessary for the author, as tools like grep and tail were becoming increasingly frustrating. The daily routine involved connecting to servers, opening large log files and struggling to locate the single line with an error among vast amounts of information and debugging data. While tools like grep and tail -f existed, reading multi-line traces within a standard terminal proved to be a daunting task.\n\nThe logs were generated by either standard logging libraries or the modern loguru. When dealing with multiple services or workers, the author had to juggle between opening numerous tabs in the terminal or writing complex bash scripts. Switching between frequent errors and deep traces often involved endless scrolling of the terminal window.\n\nTraceTUI was created using the Textual framework, dividing it into three logical panels: the left panel for a list of active log files, the central panel showcasing the log stream with automatic color coding for severity levels and the right panel displaying the full trace, metadata, and custom tags. The terminal's hassle with text wrapping was eliminated.\n\nKey features included format autodetection for loguru, standard logging or plain text; smart error navigation using E to jump straight to errors after highlighting them in bright red; real-time filtering by pressing F and entering a search query which dynamically updated the log stream; and a timeline merging mode merging multiple log files into a single chronological timeline with source tags.\n\nTo try out TraceTUI, the project is open-source under the MIT license. Installation can be done via pip: pip install tracetui. Running it requires passing log files as arguments: tracetui app_loguru.log server.log.\n\nThe author hopes this utility will provide relief from debugging headaches in the future. The project is still in its early stages, and the author welcomes feedback, suggestions on what's missing or what can be improved. Comments and issues on GitHub are encouraged.",
  "summary": "Every time something goes wrong in production, the ritual is the same: you connect to the server, open the logs, and stumble upon a huge wall of text. You strain your eyes, trying to spot the single line with the ERROR hidden among the megabytes of INFORMATION and DEBUG DATA. Of course, we have grep, tail -f. But when a giant multi‑line trace appears in the console, reading it in a standard…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}