Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsJul 3, 2026·2 min de lecture

Toolong — Terminal Application for Viewing and Tailing Log Files

A TUI log file viewer by Textualize that supports tailing, searching, merging, and filtering log files and JSONL data.

Prêt pour agents

Installation avec revue préalable

Cet actif nécessite une revue. Le prompt copié demande un dry-run, affiche les écritures, puis continue seulement après confirmation.

Needs Confirmation · 64/100Policy : confirmer
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Toolong
Commande avec revue préalable
npx -y tokrepo@latest install 9f591478-76db-11f1-9bc6-00163e2b0d79 --target codex

Dry-run d'abord, confirmez les écritures, puis lancez cette commande.

Introduction

Toolong is a terminal-based log file viewer built by Textualize, the team behind Rich and Textual. It handles large log files efficiently, supports live tailing, merging of multiple log files by timestamp, and provides interactive search and filtering with syntax highlighting.

What Toolong Does

  • Opens and navigates large log files without loading the entire file into memory
  • Tails log files in real time with automatic scrolling
  • Merges multiple log files into a single chronological view
  • Highlights timestamps, log levels, and key patterns with syntax highlighting
  • Searches log content with regex support and result navigation

Architecture Overview

Toolong is built on the Textual TUI framework in Python. It uses memory-mapped file access to handle files of any size without loading them entirely into RAM. The timestamp parser supports common log formats and uses them for merge ordering. The rendering pipeline leverages Rich for syntax highlighting and Textual for the interactive widget layout.

Self-Hosting & Configuration

  • Install via pip: pip install toolong or pipx: pipx install toolong
  • Open a file: tl /path/to/logfile.log
  • Tail a file: tl --tail /var/log/syslog
  • Merge multiple files: tl --merge file1.log file2.log file3.log
  • Supports JSONL files with automatic field extraction

Key Features

  • Memory-efficient handling of multi-gigabyte log files
  • Live tail mode with auto-scroll and pause on scroll-up
  • Timestamp-aware merge of multiple log sources into one view
  • JSONL support with structured field display
  • Built on Textual for a polished, responsive terminal interface

Comparison with Similar Tools

  • less — Universal pager but no syntax highlighting, merging, or live tailing
  • lnav — Feature-rich log navigator; Toolong is lighter and easier to install via pip
  • tail -f — Basic tailing; no search, highlighting, or file merging
  • multitail — Tails multiple files; Toolong adds timestamp-merged views and search

FAQ

Q: How does it handle large files? A: It uses memory-mapped I/O so it can open multi-gigabyte files without loading them into RAM.

Q: Can it merge logs from different formats? A: Yes. It auto-detects timestamp formats and interleaves lines chronologically.

Q: Does it support structured logs? A: Yes. JSONL files are parsed and displayed with extracted fields.

Q: What terminals are supported? A: Any terminal that supports 256 colors or true color, including iTerm2, kitty, WezTerm, and most Linux terminals.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires