]> xenbits.xensource.com Git - libvirt.git/commit
Add systemd journal support
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 25 Sep 2012 17:31:01 +0000 (18:31 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Sep 2012 15:02:56 +0000 (16:02 +0100)
commitf64303907b9d73a20f2bc81d5d86d26a64134f93
treec3b608d9adf81ce5eca01e7c5fd36d4e6723cd1f
parentb073fe40db4dadee0e127108d99e8713758078ef
Add systemd journal support

Add support for logging to the systemd journal, using its
simple client library. The benefit over syslog is that it
accepts structured log data, so the journald can store
individual items like code file/line/func separately from
the string message. Tools which require structured log
data can then query the journal to extract exactly what
they desire without resorting to string parsing

While systemd provides a simple client library for logging,
it is more convenient for libvirt to directly write its
own client code. This lets us build up the iovec's on
the stack, avoiding the need to alloc memory when writing
log messages.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/libvirt_private.syms
src/util/logging.c
src/util/logging.h
src/util/util.c
src/util/util.h