]> git.ipfire.org Git - thirdparty/libvirt.git/commit
log: handler: Add new API to append to logging files
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Jun 2016 14:09:09 +0000 (16:09 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 7 Jun 2016 16:10:29 +0000 (18:10 +0200)
commit5e6143fbccf2e6afb73c3f872ccdafd02fed5d95
tree57b7b138d8ca8ccd00e095b64f4ff32e46db6a4a
parent456ccc14d5535393161fbf9823e69b738365756e
log: handler: Add new API to append to logging files

For logging one-shot entries to the VM log file it's quite a waste to
hold open the file descriptor for logging that is provided by the
current API.

This new API will be ideal for logging one-shot entries to the file
e.g. at the point when we shut the VM down rather than having to add the
whole file-descriptor infrastructure.

Additionally this will allow to add the messages even after restart of
libvirtd since virtlogd doesn't allow to obtain a regular context with
filedescriptors while the VM is still active.
src/logging/log_handler.c
src/logging/log_handler.h