Wayland, GNOME Shell and arbtt

Tomasz Miąsko tomasz.miasko at gmail.com
Fri Dec 22 15:24:40 CET 2017


On Fri, Dec 22, 2017 at 01:54:00PM +0100, Joachim Breitner wrote:
> > The format could be exactly the same as one in
> > arbtt-dump -t JSON, including overall array. Presuming that requirement
> > of a streaming JSON parser is not particularly prohibitive.
> 
> no, that might work as well. JSON values are always clearly delimited,
> e.g. with a "]" or "}", right?

Yes, they are clearly delimited. It would be something like:

  [{ entry 1 ... }, { entry 2 ... }, ..., { entry n ... }]

What I was actually trying to imply, is that log appender should be able
to read some initial prefix of such input and write it to log
immediately, i.e., without having to wait for EOF to do that.

> I just noticed that we have an arbtt-import tool:
> http://arbtt.nomeata.de/doc/users_guide/re04.html
> This could be extended with a format flat and a “continuous” flag. Are
> you interested in contributing a patch for this?

Interesting, arbtt-import uses getContents (lazy IO) to read input, and
effectively it already works as it should (ignoring for the moment,
different input format and requirement that log doesn't already exists).

Maybe a simple append flag should suffice (to ignore check for log file
existence). Though, Show format is not as appealing as JSON, but still.

--
Tomasz




More information about the arbtt mailing list