Log Tailor
A fast read-only log viewer for very large files with ANSI colors, level highlighting, filtering, and follow mode. Built-in VS Code refuses or struggles with multi-GB files and displays raw escape codes.
What It Does
Log Tailor indexes files in 4 MB streaming chunks with bounded memory and renders only the visible viewport in a virtualized webview. You get instant first-screen rendering, full ANSI SGR color support, log-level gutters and filters, regex search, and live follow mode directly inside VS Code.
Opening Log Files
Log Tailor registers logTailor.viewer at option priority for *.log, *.log.*, and *.out files so it does not hijack your normal text editor:
- Open once: Open a file, run View: Reopen Editor With... from the Command Palette (or right-click the editor tab -> Reopen Editor With...), and pick Log Tailor. You can also run
Log Tailor: Open Log File or Log Tailor: Open Active File in Log Tailor.
- Make default: Add the association below to your VS Code
settings.json:
"workbench.editorAssociations": {
"*.log": "logTailor.viewer",
"*.out": "logTailor.viewer"
}
Features (Free vs Pro)
| Feature |
Free |
Pro |
Custom readonly viewer (logTailor.viewer) for *.log, *.log.*, *.out |
Included |
Included |
| Streaming 4 MB chunk indexer for multi-GB files |
Included |
Included |
| Virtualized list viewport (handles millions of lines) |
Included |
Included |
| ANSI SGR rendering (16 colors, 256-color, truecolor, styles, safe escaping) |
Included |
Included |
| Level detection, gutter colors, and level filter toggles with counts |
Included |
Included |
| Plain & regex search with match counts, Next/Prev, and filter-only mode |
Included |
Included |
| Live follow mode (append, truncate, and rotation recovery) |
Included |
Included |
| Go to line and copy selected lines without ANSI codes |
Included |
Included |
Strip ANSI codes to untitled document (logTailor.stripAnsi) |
Included |
Included |
| Multi-file Merge View (2 to 8 logs interleaved by timestamp) |
Upgrade prompt |
Included |
| JSON-lines (JSONL) column mode with configurable fields |
Upgrade prompt |
Included |
Workspace saved filter sets (.vscode/log-tailor.json) |
Upgrade prompt |
Included |
| Offline license verification (Ed25519 + 14-day grace period) |
Included |
Included |
Commands
logTailor.open (Log Tailor: Open Log File): Pick a file and open it in the Log Tailor viewer.
logTailor.openActive (Log Tailor: Open Active File in Log Tailor): Reopen the active file in Log Tailor.
logTailor.stripAnsi (Log Tailor: Strip ANSI Codes to New Document): Copy the active editor without ANSI codes into a new untitled document.
logTailor.goToLine (Log Tailor: Go to Line): Jump to a 1-based line number in the active Log Tailor viewer.
logTailor.toggleFollow (Log Tailor: Toggle Follow Mode): Toggle live file tailing on the active viewer.
logTailor.mergeLogs (Log Tailor: Merge Log Files (Pro)): Interleave 2 to 8 log files by timestamp (ISO 8601, YYYY-MM-DD HH:MM:SS[,.]mmm with optional offset, syslog MMM dd HH:MM:SS, JSON epoch in s/ms/us/ns). Naive timestamps without an explicit timezone offset are interpreted in local time.
logTailor.saveFilterSet (Log Tailor: Save Filter Set (Pro)): Save active level, search, and JSONL filters to .vscode/log-tailor.json.
logTailor.loadFilterSet (Log Tailor: Load Filter Set (Pro)): Apply a saved filter set from .vscode/log-tailor.json.
log-tailor.enterLicense (Log Tailor: Enter License Key): Activate a Pro license key in VS Code SecretStorage.
Settings
logTailor.levelPatterns (object): Regex patterns for FATAL, ERROR, WARN, INFO, DEBUG, TRACE (evaluated case-insensitively).
logTailor.jsonlColumns (string[], default ["level", "time", "msg"]): Columns displayed in JSON-lines mode (Pro).
logTailor.followByDefault (boolean, default false): Start follow mode automatically when opening a file.
logTailor.maxLineLength (integer, default 16384): Maximum bytes rendered per single line.
log-tailor.telemetry.enabled (boolean, default false): Opt-in usage telemetry (counts of opens and feature use only).
log-tailor.apiBaseUrl (string, default "", machine-scoped): Override the licensing API base URL (must use https://).
- Streaming Indexer: Files are scanned in 4 MB chunks using
Buffer.indexOf(0x0a) and stored in chunked Uint32Array relative-offset blocks (4 bytes per line) plus 4-bit packed level nibbles (0.5 bytes per line).
- Instant First Screen: The first 4 MB chunk renders immediately while remaining chunks continue indexing in the background with a cancellable progress notification.
- Scaled Virtual Scrollbar: Files with millions of lines use proportional virtual scrolling to stay within browser layout height limits.
Privacy
All log reading, indexing, search, ANSI rendering, and merging run locally on your machine. No file paths, log contents, filter patterns, or search queries ever leave your editor.
Network requests occur only for:
- License activation, refresh, and deactivation: When you enter or refresh a Pro license key, Log Tailor sends the license key or cached token, product ID, extension version, and VS Code's anonymous
machineId over HTTPS to the configured licensing API (log-tailor.apiBaseUrl).
- Opt-in telemetry: Disabled by default. Only when both
log-tailor.telemetry.enabled and VS Code's global telemetry setting are enabled does Log Tailor send anonymous open and feature-usage counts alongside a truncated SHA-256 hash of machineId + productId.
Offline Behaviour
All Free features work 100% offline. Pro features verify cached Ed25519-signed license tokens locally and continue working offline during the 14-day grace window.
Pricing
Log Tailor is free to use. Pro adds multi-file merge, the JSONL table view and saved filter sets.
- Pro: $4/month or $36/year
- All Access (every Toolsmith Labs extension): $12/month or $99/year
View plans and buy. After purchase, sign in to your account to copy your license key, then run Log Tailor: Enter License Key.
Support
Report issues or request features at github.com/toolsmith-labs/support. For billing or license questions, email jashambaliya05@gmail.com.
| |