Open kiesel opened 3 days ago
could it be that some-command
also uses colors?
Plain experiment:
echo '{"msg":"test","level":"debug"}' | jlv
The experiment yields jlv with colored debug; however, the original program does in fact only emit json logs, nothing else. It is a nodejs process.
This sample, though, also shows colors:
$ node -e 'console.log(JSON.stringify({msg: "test", level: "debug"})); console.log(JSON.stringify({msg:"error", level: "error"}));' | jlv
I will investigate the original script.
When I run
I don't have colored log levels - different from when opening a file w/
jlv somelog.json
.Probably the interactive terminal detection goes wrong due to stdin being used?