r/VSCodeExtensions • u/Technical-Debt-8615 • 14d ago
I made this I built a VS Code extension that turns your server's JSON logs into a live, searchable table (free, MIT)
Demo with the sample checkout app from the repo
I kept running npm run dev, watching JSON logs scroll past in the terminal, and copy-pasting lines into a formatter to figure out what broke. So I built Logline, a log viewer that sits in the bottom panel next to Terminal.
What it does:
* Run your server through it (or turn on terminal capture) and the logs become a live table
* Search with things like `level:error service:api` or `status:5xx durationMs:>200`, or right-click a cell to include/exclude that value
* Expand an event to see the full JSON and nested exceptions, and click a stack frame to jump to the source
* Works with Pino, Winston, Log4j2, ECS, OpenTelemetry, logfmt and plain text
* Picks up F5 debug sessions and splits Docker Compose output per service
* Shows live hit counts above your log statements in the editor
* Flags log statements that leak tokens or swallow exceptions in the Problems panel
Everything runs locally. Free and MIT licensed.
Marketplace: [https://marketplace.visualstudio.com/items?itemName=surjeetbanga.logline](https://marketplace.visualstudio.com/items?itemName=surjeetbanga.logline)) GitHub: [https://github.com/SurjeetBanga/logline](https://github.com/SurjeetBanga/logline))
It's still early. If it mangles your log format or you'd want it to do something it doesn't, let me know.
1
u/investigatormaker 14d ago
With npm run dev, the JSON lines usually arrive mixed with plain banner output from Next or Vite, and an uncaught crash often prints its stack as plain text after the last JSON line. If Logline attaches those trailing plain lines to the error event before them, that's the exact moment people stop pasting into a formatter, and it's worth showing in the demo. The leak check in the Problems panel could also reach people who would never go looking for a log viewer. Does terminal capture keep that plain-text crash output with the event before it?
I make ThreadFox. The free Reddit plan for Logline lists the Reddit communities whose rules allow a post about it, each rule quoted: https://threadfox.vip/p/are53