xlogger
VS Code extension to pretty print JSON and structured logs (xLogger style).
- Supports both JSON and plain logs
- Works with Shift+X
Convert
{"timestamp":"2025-07-03T22:11:17.789+0530","level":"ERROR","pod":"AEB-M5EP3C54","cid":"01JZ8JKXPXBSG6GTNZMC24XJXB","msg":"Message Got Issue with stack trace","error":"gchild error","context":{"key":"value HUlaa","keyb":"valueb","keyc":"valuec"},"stacktrace":{"main.child":"/Users/bshu2394/Documents/Office/go-kitcore/logger/example/example.go:69","main.grandChild":"/Users/bshu2394/Documents/Office/go-kitcore/logger/example/example.go:73","main.main":"/Users/bshu2394/Documents/Office/go-kitcore/logger/example/example.go:60"}}```
to
[2025-07-03T22:11:17.789+0530] ERROR: Message Got Issue with stack trace
CID: 01JZ8JKXPXBSG6GTNZMC24XJXB
POD: AEB-M5EP3C54
CTX: key: value HUlaa
keyb: valueb
keyc: valuec
ERR: gchild error
Stacktrace:
main.child
/Users/bshu2394/Documents/Office/go-kitcore/logger/example/example.go:69
main.grandChild
/Users/bshu2394/Documents/Office/go-kitcore/logger/example/example.go:73
main.main
/Users/bshu2394/Documents/Office/go-kitcore/logger/example/example.go:60
| |