[systemd-devel] ---- lines and verbose export

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Oct 15 09:19:04 PDT 2012


On Mon, Oct 15, 2012 at 04:18:40PM +0200, Lennart Poettering wrote:
> 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?
Yep. Pushed a change to that effect.

Zbyszek



More information about the systemd-devel mailing list