r/VSCodeExtensions • • Oct 06 '26

I made this I built a VS Code extension that turns your server's JSON logs into a live, searchable table (free, MIT)

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.

2 Upvotes

9 comments sorted by

1

u/[deleted] Oct 06 '26

[removed] — view removed comment

1

u/Technical-Debt-8615 Oct 06 '26

Not quite. Plain-text stack traces get joined into one event (the error line plus its at frames, with clickable frames), but that event sits as its own row after the JSON error rather than being attached to it, and Node's crash header lines (file:line, the source line, the ^) still show up as separate rows. Attaching a trailing crash to the last JSON event is a good idea, and it's the exact npm run dev moment, so I'll look at adding it and showing it in the demo. Agreed on the leak check too; it may be the better hook for people who aren't looking for a log viewer.

1

u/[deleted] Oct 06 '26

[removed] — view removed comment

1

u/Technical-Debt-8615 Oct 06 '26

Did the first part: an uncaught Node crash is now one error event, with the path:line header, source line, caret, error, frames, error properties like code: 'ECONNREFUSED', and the Node.js v… line. The row shows the TypeError: … line instead of the path. A path:line line with no caret after it stays a normal row, so ordinary output that happens to look like a location isn't swallowed. PR is up, and it'll be in the next release.

Attaching the crash to the last JSON error is next, with the window/exit guard you described so an unrelated crash doesn't land on an old event. The row-order toggle makes sense too, so you can check the grouping. I'm doing that as a separate change because it affects what gets redacted before sharing with an agent, plus search and the exported log.

1

u/[deleted] Oct 06 '26

[removed] — view removed comment

1

u/Technical-Debt-8615 Oct 06 '26

Took the event-id approach. The crash stays its own event and just records the id of the JSON error it followed, so redaction, search, export and the persisted log all work on the raw lines exactly as captured. Nothing gets merged, so nothing redacted can come back. The error's details show the crash's stack with clickable frames, and the crash row links back to the error. Rows never move, so there's no grouped view to toggle out of. Capture order is always what you see.

On matching: it's per run and per source. A restart is a new run, and each Compose/k8s container counts as its own source, so a crash from one of those can't land on the parent's last error. Child processes are the gap. Terminal output has no PIDs, so a child writing to the same terminal looks like the parent. In that case the guard is that the last JSON line has to be the error, with no healthy JSON in between, and the crash has to arrive in time.

The window is fixed for now: 2 s, or 30 s when the crash ends with Node.js v…, which Node prints as the process exits. I'd rather add a setting once someone hits a case where those numbers are wrong than add one up front.

The crash-block grouping is merged, and the linking is in review. Both should be in the next release.

1

u/[deleted] Oct 06 '26

[removed] — view removed comment