jrockway/json-logs
View on GitHub ↗ ★ 16 Go
A tool to pretty-print JSON logs, like those from zap or logrus.
11 mentions on Hacker News by 1 person: 0 stories, 11 comments · first 2020-10-30 · latest 2025-10-27
20082026
-
Yeah. I log in json + unix timestamp nanoseconds, and just convert it to something human-readable on display (github.com/jrockway/json-logs). I am not sure why logs need to be "pretty" at time of logging when they can be made pretty at…
comment by jrockway · 2025-10-27 · in Avoid 2:00 and 3:00 am cron jobs (2013) -
…exits immediately when you press C-c. The program that I have the most trouble with is jlog ( https://github.com/jrockway/json-logs ). I wrote it so this could very easily be my fault. (I think it's the colors and whatnot, which I have not…
comment by jrockway · 2024-05-25 · in Tmux is worse-is-better -
…test with a go1.18 prerelease just to get a feel for the new framework. It found a crash instantly: https://github.com/jrockway/json-logs/commit/77c87854914d756... . This commit contains the fuzz test and the fix. (3 cases could be nil; I…
comment by jrockway · 2023-12-15 · in Maybe getting rid of your QA team was bad -
…] do it for you. If you want pretty colors for viewing, use something like jlog: https://github.com/jrockway/json-logs . You don't need to write VT100 control characters to your log file. I know for a fact you don't even have a VT100. All
comment by jrockway · 2023-06-28 · in Monitoring Is a Pain -
…the intermediary. It's pretty easy to post-process the logs into something understandable. I wrote https://github.com/jrockway/json-logs for this task. Give it a stream of JSON logs, get colorful text out. Add/drop fields or…
comment by jrockway · 2022-10-05 · in The Art of Logging -
…and output sugar to make looking at and analyzing such logs an enjoyable experience: https://github.com/jrockway/json-logs
comment by jrockway · 2021-12-23 · in Fq: Jq for Binary Formats -
…join fields together, etc. Basically, every time you run it, you get the logs YOU want to look at. https://github.com/jrockway/json-logs . Not to oversell it, but this is one of the few pieces of software I've written that passes the…
comment by jrockway · 2021-08-25 · in An Introduction to JQ -
…that. It's ugly if you just read the output, but great if you have a tool to pretty-print the logs: https://github.com/jrockway/json-logs/releases/tag/v0.0.3 ) Anyway, I guess where this rant goes is -- errors are not an afterthought.…
comment by jrockway · 2021-08-24 · in Error stack traces in Go with x/xerror -
…timestamps to my local time zone, lets me query them with jq, highlights errors with color, etc.: https://github.com/jrockway/json-logs Can't live without it, I use it many times every day, and have even convinced other people to use it…
comment by jrockway · 2021-01-14 · in Ask HN: What are you working on? -
…plain text instead of JSON, but I don't use it anymore; I just pipe the logs through jlog (`go install github.com/jrockway/json-logs/cmd/jlog`) and the results are much prettier than what zap would do itself. And it's the same tool I use…
comment by jrockway · 2020-11-15 · in Golang web service framework with DI, Telemetry and more -
…that everything is mTLS, etc. Will be added when I am less lazy ;) While I'm here I'll also plug https://github.com/jrockway/json-logs for making the structured logs enjoyable to read. You can query them with jq, it understands all the…
comment by jrockway · 2020-10-30 · in Application Load Balancers enables gRPC workloads with end to end HTTP/2 support