Esta página se muestra en inglés. Una traducción al español está en curso.
ConfigsJul 3, 2026·2 min de lectura

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.

Listo para agents

Instalación con revisión previa

Este activo requiere revisión. El prompt copiado pide dry-run, muestra escrituras y continúa solo tras confirmación.

Needs Confirmation · 64/100Política: confirmar
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
Toolong
Comando con revisión previa
npx -y tokrepo@latest install 9f591478-76db-11f1-9bc6-00163e2b0d79 --target codex

Primero dry-run, confirma las escrituras y luego ejecuta este comando.

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

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados