[systemd-devel] ---- lines and verbose export
Lennart Poettering
lennart at poettering.net
Mon Oct 15 07:18:40 PDT 2012
On Mon, 15.10.12 12:36, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:
> Hi,
>
> the "---- Logs since ...", etc, lines are not described in the export
> format specification. So a simplistic 'journalctl -o export | parse_logs'
> will fail. Should the specification be tweaked, or should journalctl
> stop outputting those (otherwise useful) lines in verbose mode?
Hmm, in the json/export modes we should definitely suppress them, and
show them only in the modes intended for humans to digest. But even then
we should probably make them easily recognizable. My current way of
thinking is always to prefix with them with three dashes, much like SQL
comments.
i.e. suppress them in: json, json-pretty, cat, export.
Show them in: short, short-monotonic, verbose.
Does that make sense?
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list