hedhyw / json-log-viewer

Interactive viewer for JSON logs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reading from stdin

kolypto opened this issue · comments

commented

Currently it's not possible to read from stdin:

$ docker logs tasks 2>&1 | ./jlv -
Something went wrong: os: open -: no such file or directory.

A workaround is to use bash process substitution:

$ ./jlv <(docker logs tasks 2>&1)

another way around is to use tee.

docker logs tasks | tee tasks.logs
jlv tasks.logs

btw, it's planned to be implemented! thanks for the issue!

included in v0.5.1