log: Introduce PULSE_LOG_JOURNAL environment variable
authorAhmed S. Darwish <darwish.07@gmail.com>
Fri, 14 Aug 2015 16:47:32 +0000 (18:47 +0200)
committerArun Raghavan <git@arunraghavan.net>
Fri, 25 Sep 2015 11:59:03 +0000 (17:29 +0530)
commitac5b7b8d5cbf53c68fb39ae27f54a69894d50d01
treea280cc14b3524be21d2ed79c1c6e13fccc5a7845
parentc93903d99a9084ff1e37feb6ae6085ced75466b1
log: Introduce PULSE_LOG_JOURNAL environment variable

By introducing such an environment variable, applications using the
PA client libraries can configure these libraries to send their logs
directly to the journal.

While client libraries journal logging can be indirectly achieved
using PULSE_LOG_SYSLOG, this pollutes the journal. Meta data gets
replicated twice: once in the journal meta fields and once in the
syslog(3) plain-text message itself.

For attaching any backtraces, also introduce the PA-specific journal
meta field PULSE_BACKTRACE. This is the recommend journal practice
instead of appending any furuther data to the logging message itself.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
src/pulse/pulseaudio.h
src/pulsecore/log.c