log: Add support for the systemd journal

System Internals / PulseAudio - poljar (Damir Jelić) [gmail.com] - 20 December 2013 06:06 UTC

The journal is a component of systemd, that captures Syslog messages, Kernel log messages, initial RAM disk and early boot messages as well as messages written to STDOUT/STDERR of all services, indexes them and makes this available to the user.

It can be used in parallel, or in place of a traditional syslog daemon, such as rsyslog or syslog-ng.

The journal offers a couple of improvements over traditional logging facilities (e.g. advanced filtering capabilities).

This patch adds support for logging directly to the journal using its native API.

d20ee7e log: Add support for the systemd journal
configure.ac | 18 ++++++++++
man/pulse-daemon.conf.5.xml.in | 11 +++---
man/pulseaudio.1.xml.in | 5 +--
src/Makefile.am | 5 +++
src/daemon/cmdline.c | 4 +++
src/daemon/main.c | 4 +++
src/pulsecore/log.c | 76 +++++++++++++++++++++++++++++++++++-----
src/pulsecore/log.h | 3 ++
8 files changed, 110 insertions(+), 16 deletions(-)

Upstream: cgit.freedesktop.org


  • Share