diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-05 15:25:32 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-05 15:25:32 -0700 |
commit | a6e87e90ede66815989ba2db92a07102a69906fe (patch) | |
tree | fb0a5304c033842264760a3efe2b7c869f757131 /man/journalctl.xml | |
parent | 04bc4a3f47074d22035831965e97b0990fcf6f63 (diff) |
journalctl: rework JSON output mode
This splits the JSON output mode into different modes: json and
json-pretty. The former printing one entry per line, the latter showing
JSON objects nicely indented and in multiple lines to make it easier to
read for humans.
Diffstat (limited to 'man/journalctl.xml')
-rw-r--r-- | man/journalctl.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/man/journalctl.xml b/man/journalctl.xml index 1ea004fc81..b5950c94ce 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -189,6 +189,7 @@ <literal>verbose</literal>, <literal>export</literal>, <literal>json</literal>, + <literal>json-pretty</literal>, <literal>cat</literal>. <literal>short</literal> is the default and generates an output that is mostly identical to the @@ -209,7 +210,13 @@ Export Format</ulink> for more information). <literal>json</literal> formats entries as JSON data - structures. <literal>cat</literal> + structures, one per + line. <literal>json-pretty</literal> + also formats entries as JSON data + structures, but formats them in + multiple lines in order to make them + more readable for + humans. <literal>cat</literal> generates a very terse output only showing the actual message of each journal entry with no meta data, not |