<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 22 September 2014 11:33, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The current '--output FORMAT' argument defines a number of<br>
common output formats, but there are some useful cases it<br>
does cover. In particular when reading application logs it<br>
is often desirable to display the code file name, line number<br>
and function name. Rather than defining yet more fixed output<br>
formats, this patch introduces user defined output formats.<br>
<br>
The format string is an arbitrary string which contains a<br>
mixture of literal text and variable subsistitions. Each<br>
variable name corresponds to a journal field name. A variable<br>
name can be optionally followed by a data type, and in the<br>
case of string types, a length limit.<br></blockquote><div><br></div><div>As an opposing point of view, I've been accomplishing this by piping output through a script that parses and displays JSON.</div><div>I rather this style of composability than passing format strings to journalctl itself.</div><div><br></div></div></div></div>