Using the new GLib structured logging support, send structured log messages to journald. This simplifies polkit's logging code a little, and allows more information to be sent to the journal. Specifically, MESSAGE_IDs can now be sent; and connecting directly to the journal means it will get the right process information.
This bumps the GLib dependency to 2.49.4.
Created attachment 125778 [details] [review]
polkitbackend: Enable structured logging output
This bumps polkit's GLib dependency to 2.49.4, but enables new features
such as message IDs for log messages, inclusion of various key
parameters as separate fields, and (probably most importantly) coloured
A custom log writer function is used to preserve the original behaviour
of outputting everything to the journal, and outputting debug messages
to stdout unless --no-debug is specified.
Created attachment 125779 [details] [review]
polkitbackend: Fix typos in a couple of initialisation error messages
Created attachment 125780 [details] [review]
src: Switch from g_print() to g_log()
Use G_LOG_USE_STRUCTURED to ensure that the structured logging mode is
Pushing the easy patch now, the other patches still need review.
Attachment 125779 [details] pushed as 743eef5 - polkitbackend: Fix typos in a couple of initialisation error messages
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/polkit/polkit/issues/67.