The journald design is horrible to the point of useless
The journald design is horrible to the point of useless
Posted Nov 21, 2011 2:23 UTC (Mon) by josh (subscriber, #17465)In reply to: The journald design is horrible to the point of useless by ebiederm
Parent article: That newfangled Journal thing
Yet. Seems like a reasonable thing to defer for a first prototype.
> A logging facility without a stable ABI on disk and no plans to create one?
ABIs *suck*. Why should journald need to nail down a binary disk format rather than creating an API? Why should people recreate parsers for a disk format, usually badly, rather than all using the same parser via a library? Versioned formats don't help here, because too many people will write tools around a format, and at best add an assert() on the version number, or at worst not even bother with that because "It's just a quick Perl script"; when the new version comes out, widespread breakage will occur anyway, and people will complain and demand the return of the existing format. And most importantly, why should journald commit to nailing down a disk format *now* that it can never change, rather than allowing for potential changes in the future to meet needs such as improved performance, indexing, and so on.
For that matter, journald could support multiple formats for different use cases, or even provide an implementation of the API that just serves up syslog messages as though they'd gotten sent to journald in the first place; how can they do that if tools ignore the API and poke the disk formats on their own?
As long as journald handles backward compatibility with older versions of the format (once it gets out of development), I don't otherwise care about any particular storage format.
> An attitude that says the classic syslog interface is depercated and the native journal interface is preferred.
I can't imagine having any other attitude; if you come up with something you consider better, why *wouldn't* you advocate using it, even though you provide backward-compatibility for the existing approach?
> Not considering the model that has worked very well for translation of linux userspace messages into other languages and insisting we all use unreadable UUID?
That one I'll grant you, but consider that this is a strawman proposal designed to get feedback; that may well change in the future. And on the other hand, have you considered their complaints about the use of format strings as ABI? The concept of some kind of sensible identifier associated with a log message type rather than a particular wording of that message makes sense to me.
