Skip to content

gmessages: add a new log writer for new-style daemon logging

Bartosz Golaszewski requested to merge brgl/glib:new-style-log-writer into master

New-style daemons controlled by systemd can use the straightforward way of logging to stderr. Log levels can be specified by prefixing each line with headers just like the linux kernel's printk specifies e.g.: '<4>' for WARNING level.

This patch adds a new log writer that automatically translates the GLib log levels to their corresponding new-style headers and prints all messages to stderr.

Signed-off-by: Bartosz Golaszewski brgl@bgdev.pl

Merge request reports