chiark / gitweb /
journal: in json and export mode use double underscores to prefix location fields
authorLennart Poettering <lennart@poettering.net>
Tue, 3 Apr 2012 16:15:28 +0000 (18:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 Apr 2012 16:15:28 +0000 (18:15 +0200)
commitba8d3790e85ce6bacb2e567e0ba48ceb8e66770e
treee87371c919199fc1ce74e45b87f3f9f7dd7b2092
parent568b679f2a5db6a23c795363091b94ad804f24f6
journal: in json and export mode use double underscores to prefix location fields

Many programming languages don't allow variable names beginning in dots,
hence let's use double underscores for the location fields instead. This
gets us the simple rule:

__ is the prefix for location fields (i.e. fields that are used to
identify entries, rather than part of the entries)

_ is the prefix for trusted fields (i.e. those fields journald itself
adds to all entries)

no prefix for unrusted fields (i.e. all fields normal client code sends
us)
src/logs-show.c