Open kokokenada opened 1 year ago
Agreed on the need for this. My use case is similar... I have an OSS project sq that outputs JSON logs. I want to be able to tail/follow those logs. Something like:
$ tail -f sq.log | jless
# or even
$ jless -f sq.log
joining here also to request this, in my use case our service outputs json logs, then I pipe that to jq
to only select the ones I care about, and I need some nice way to inspect the output of that in a continuous stream, so I'm doing something like
service | jq --unbuffered '. | select(.event | endswith("debug.err")) | .["error.message"]' | jless
but sadly it doesn't work
Context:
What would be cool:
npm run start:watch | jless --console-debug
jess -l 1
was given, the JSON would be expanded by default to the first level only (sometimes when debugging, one outputs a huge json object which is hard to scroll through)This would make server debugging similar to debugging in the browser console, where you can console.log(someObject) and can then expand and explore the object.