scrolls icon indicating copy to clipboard operation
scrolls copied to clipboard

format spec

Open kr opened this issue 13 years ago • 3 comments

Is there a document anywhere that specifies how to generate and interpret logs in the scrolls format? The phrase “a key=value structure” is pretty open-ended.

I took a stab at defining an unambiguous format in this style, using JSON as a baseline and tweaking it until it looks right for logs. The idea is to take advantage of people's existing mental model for JSON data and just define a different encoding.

One thing I'm concerned with is round-trip accuracy: encoding a log message, then decoding it again should produce the same data you started with.

What do you think of this? Does it strike a good balance between flexibility and comprehensibility? Do you think it would be worth changing scrolls to explicitly stick to this format (even if we have to tweak the definition)?

https://gist.github.com/0e8d5ee4b954ce604bb2

kr avatar Nov 10 '12 01:11 kr

Commented in the gist.

asenchi avatar Dec 04 '12 16:12 asenchi

Replied.

( Are gist notifications working yet? ;) )

kr avatar Dec 04 '12 23:12 kr

Here is another format proposal: https://github.com/zimbatm/lines

zimbatm avatar Apr 03 '13 10:04 zimbatm