Open Huge Log Files Instantly
Data Stays on Your Machine

miniLog is an open-source log viewer — the macOS native edition is built on SwiftUI + AppKit with an mmap zero-copy core, the Web / Windows / Linux edition ships as a single Go binary, and the browser edition runs purely client-side on Cloudflare Pages. 1 GB logs load instantly; while a 10 GB file indexes in the background, you're already reading the first screen.

miniLog — sample.log
2
#TimeLevelMessage
62 lines Indexed 100%

Three Platforms, One Engine

macOS Native

SwiftUI + AppKit shell with an mmap zero-copy core. 4 MB window progressive indexing, virtual scrolling decodes only visible lines. Requires macOS 13+ and Swift 5.9+.

swift run miniLog

Web / Windows / Linux Desktop

Single Go binary with embedded browser frontend. Double-click to launch a local server and auto-open the browser — files never leave your machine.

go run ./webapp

Browser Edition

Pure client-side engine on Cloudflare Pages. Drag or select a file — parsing, indexing, and search all happen in the browser, no server involved.

app.minilog.whatled.com ↗

Core Capabilities

Progressive Indexing + Virtual Rendering

4 MB window scanning, first screen appears in milliseconds; virtual scrolling decodes only visible lines, NSCache holds 4,000 entries. No lag no matter how large the file.

Byte-Level Fast Search

Plain text uses memchr raw byte scanning; regex / whole-word / case-sensitive toggle matches line by line; hits binary-search the index to resolve line numbers.

Level Filtering

Check/uncheck levels for instant filtering. Lines at undetected levels — stack frames, SQL — are always preserved; the "ERROR only" view never loses stack traces.

Exception Navigation

Exception headers (FQN) and Caused by: chains are indexed in the background; the status bar shows the count; ‹ › jumps between exceptions; headers in red, stack frames in gray.

MyBatis SQL Assembly

Preparing: and Parameters: are auto-paired; ? placeholders are replaced in order with type-aware literals (1(Long) → 1, tom(String) → 'tom'); one-click copy of executable SQL.

JSONL Pretty View

Double-click a JSONL line to open a formatted view; the level field participates in level detection; copy supported.

Three Jump Modes

Line number, 50% percentage, 09:31:00 timestamp — ⌘L is the unified entry point; time jumps linearly scan for the first match.

Copy Context

⇧⌘C copies the selected line ±25 lines with line numbers — paste directly into issues or AI conversations.

Tail Following & Rotation

Real-time follow of file growth; pause/resume; detects rotation via device+inode and auto-follows the new file (desktop and web editions).

Auto Encoding Detection

BOM → UTF-16 zero-byte heuristic → strict UTF-8 validation → Latin-1. Supports UTF-8, UTF-16 LE/BE, Latin-1.

Custom Highlight Rules

Substring or regex + 8-color palette; saved in browser localStorage; persists across sessions.

Use Cases

Debug Production Exception Stacks

Open the log, ⌘E jumps between exceptions, ⇧⌘C copies context ±25 lines — stack traces and Caused by chains preserved in full.

Verify MyBatis Executed SQL

Preparing: and Parameters: are auto-paired; ? placeholders are replaced in order with type-aware literals; executable SQL visible inline.

Browse Huge Local Log Files

4 MB window progressive indexing, first screen appears in milliseconds, background indexing continues. Even 10 GB files load instantly.

Follow Live Log Files

Tail mode follows file growth in real time; pause/resume; detects rotation via inode and auto-follows the new file.

Performance

The following data comes from project self-testing. Conditions: 1.0 GB / 13 million lines of generated logs, Apple Silicon release build, measured with --bench.

≈ 5 s Cold indexing (disk-bound; throughput ~2.8 GB/s when page cache is warm)
≈ 1.9 s Full-text search for "ERROR" (full scan of 13 million lines)

Resident memory during scanning is close to file size — but file mapping pages are cached (clean pages that the kernel can reclaim under memory pressure); the process heap is only about 8 bytes per line (line index).

Privacy

All computation happens locally or in the browser. No data is uploaded.

  • macOS edition: files are mapped into the process address space via mmap, no network involved
  • Desktop edition (Go): local HTTP server binds to 127.0.0.1 by default; files are processed locally on the server
  • Browser edition: files stay on the visitor's machine via drag/select; parsing, indexing, and search all happen in the browser

Quick Start

macOS Native

swift run miniLog                 # GUI
swift run miniLog --self-test     # Correctness self-test (69 cases)
scripts/gen_sample_log.py --size-mb 100 --out /tmp/sample.log
.build/release/miniLog --bench /tmp/sample.log --search ERROR
scripts/make_app.sh               # build/miniLog.app

Requires macOS 13+ and Swift 5.9+ (Command Line Tools is sufficient; full Xcode not needed).

Web / Desktop (Go)

go run ./webapp                     # Web edition http://127.0.0.1:8787
go run ./webapp --open /var/log/app.log
go run ./webapp --self-test
scripts/build_webapp.sh all         # 6-platform binaries

Browser Edition

cd webapp/cloud && npx wrangler deploy
cd webapp/cloud && node engine.test.mjs   # Engine tests

Live at: app.minilog.whatled.com