]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
logging: change log protocol to be more reusable
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 3 Dec 2015 17:20:35 +0000 (17:20 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2015 17:30:07 +0000 (17:30 +0000)
commit50896b28049cecf10b967709f4f79d187f87f02a
tree895fe862d4e192de00e6fb6cb4f87535d2642012
parentd4abb09d80c4ffe8f56685ee5eaac77cb990e3ec
logging: change log protocol to be more reusable

The current virtlogd RPC protocol provides the ability to
handle log files associated with QEMU stdout/err. The log
protocol messages take the virt driver, domain name and
use that to form a log file path. This is quite restrictive
as it prevents us re-using the same RPC protocol messages
for logging to char device backends where the filename
can be arbitrarily user specified. It is also bad because
it means we have 2 separate locations which have to decide
on logfile name.

This change alters the RPC protocol so that we pass the
desired log file path along when opening the log file
initially. Now the virt driver is exclusively in charge
of deciding the log filename

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/logging/log_daemon_dispatch.c
src/logging/log_handler.c
src/logging/log_handler.h
src/logging/log_manager.c
src/logging/log_manager.h
src/logging/log_protocol.x
src/qemu/qemu_domain.c