[pve-devel] applied: [PATCH mini-journalreader 1/1] add '-j' flag to output json
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Nov 24 18:17:54 CET 2021
On 24.11.21 15:47, Dominik Csapak wrote:
> in the format:
> {"data":[... log lines ...],"success":1}
>
> this is chosen so that we can achieve api compatibility when we stream
> this output to an api client
>
> strings are escaped by replacing '"', '\' and all values <= 0x1F by their
> \uXXXX representation
>
> invalid utf8 sequences will be returned as they are
> (jq and the browser can handle that)
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> src/mini-journalreader.c | 66 ++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 63 insertions(+), 3 deletions(-)
>
>
applied, thanks!
More information about the pve-devel
mailing list