feat(logcli): output modes (#731)
* feat(logcli): quiet mode Adds a quiet mode (-q / --quiet) to suppress the debug messages to stderr * feat(logcli): output modes Adds two alternative output modes (-o / --output) - raw: emits the line as parsed - jsonl: emits the line plus all known metadata as JSONL (JSON Line) Usage: -o [default, raw, jsonl] * feat(logcli): quiet tailing mode * feat(logcli): output modes while tailing Supports the three different output modes in tail mode as well * feat(logcli): print labels in jsonl tail mode * refactor(logcli): clean up entry printing Moves the entry printing into a standardized interface, implements this three times: - default (human readable) - jsonl (for scripts) - raw ('as is')
Showing
- cmd/logcli/client.go 6 additions, 2 deletionscmd/logcli/client.go
- cmd/logcli/main.go 3 additions, 1 deletioncmd/logcli/main.go
- cmd/logcli/output.go 73 additions, 0 deletionscmd/logcli/output.go
- cmd/logcli/query.go 8 additions, 13 deletionscmd/logcli/query.go
- cmd/logcli/tail.go 4 additions, 1 deletioncmd/logcli/tail.go
- cmd/logcli/utils.go 1 addition, 13 deletionscmd/logcli/utils.go
Loading
Please register or sign in to comment