DEV Community

Cover image for Stop Crashing VS Code: How to View 10GB Log Files in Your Browser
Krystian
Krystian

Posted on

Stop Crashing VS Code: How to View 10GB Log Files in Your Browser

The "Friday Deploy" Nightmare 😱

We've all been there. It’s Friday afternoon, production acts up, and you need to investigate. You SSH into the server, find the error.log, and... it’s 8.5 GB.

You download it. You try to open it with VS Code.
Result: The window freezes. Your fans spin up like a jet engine. The OS asks if you want to kill the process.

You try Notepad++. It complains the file is too big.
You try less or grep in the terminal, but reading JSON logs in a console is a pain.

This specific frustration led me to build a tool that solves this problem once and for all.


Meet Log Voyager 🛸

I built Log Voyager – a specialized, web-based tool designed specifically to handle massive log files without eating your RAM.

It runs entirely in your browser, works offline, and—most importantly—it opens 10GB+ files instantly.

🛠️ How It Works (The Technical Part)

Why does VS Code crash? Because it tries to load the entire file string into memory (RAM) to tokenize and render it.

Log Voyager uses a different approach: File Slicing.

Instead of reading the whole file, it uses the native HTML5 File API, specifically the .slice() method.

It reads the file metadata (size).

It calculates which "chunk" (e.g., 50KB) corresponds to your current scroll position.

It reads only those bytes from the disk into memory.

This means the memory footprint is constant (~20MB), whether your log file is 5MB or 500GB. It acts like a "window" sliding over the data on your hard drive.

✨ Key Features for Backend Devs

Besides not crashing your computer, I added features that I personally missed in other tools:

🔒 Privacy First (Local Execution): This was critical. Even though it's a website, your files are never uploaded anywhere. The processing happens 100% locally in your browser's sandbox. Safe for sensitive production logs.

JSON Prettifier: If your logs are messy JSON blobs, Log Voyager detects them. One click formats them into a readable tree structure.

Warp Jump Bookmarks: Navigating a 10GB file is hard. You can "bookmark" a line, scroll 5GB down, and then "warp" back to the exact byte offset instantly.

Mobile Friendly: Since it's efficient, it works perfectly on mobile. You can analyze logs on your phone while away from your desk.

🚀 Try It Out

It is a free, open-source project. If you are looking for a reliable huge log file viewer, give it a spin next time you face a giant log file.

👉 Live App: logvoyager.cc
💻 GitHub: hsr88/log-voyager

Let me know in the comments if you have any feature requests! I'm actively working on adding regex filtering next.

Happy debugging! 🐛

Top comments (0)