]> xenbits.xensource.com Git - libvirt.git/commit
libxl: define a per-domain logger.
authorCédric Bosdonnat <cbosdonnat@suse.com>
Mon, 9 Jan 2017 15:20:50 +0000 (16:20 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 11 Jan 2017 08:32:47 +0000 (09:32 +0100)
commita30b08b7179c392b59f65504cc2a6ce758e49dc6
treeb69083a2d6dfa4f5daa09d0262276fa47eebd23e
parentb29f7528ec044060304d0f540a36a68c2f1076d9
libxl: define a per-domain logger.

libxl doesn't provide a way to write one log for each domain. Thus
we need to demux the messages. If our logger doesn't know to which
domain to attribute a message, then it will write it to the default
log file.

Starting with Xen 4.9 (commit f9858025 and following), libxl will
write the domain ID in an easy to grab manner. The logger introduced
by this commit will use it to demux the libxl log messages.

Thanks to the default log file, this logger will also work with older
versions of Xen.
src/Makefile.am
src/libxl/libxl_conf.c
src/libxl/libxl_conf.h
src/libxl/libxl_domain.c
src/libxl/libxl_driver.c
src/libxl/libxl_logger.c [new file with mode: 0644]
src/libxl/libxl_logger.h [new file with mode: 0644]