]> git.ipfire.org Git - thirdparty/libvirt.git/commit
logging: introduce log handling protocol
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 3 Nov 2015 11:01:21 +0000 (11:01 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 26 Nov 2015 14:28:55 +0000 (14:28 +0000)
commit19e5db4ae2cf8afea75b261258dd7327ed966cfc
tree70ea3ce20d7a56eee32dc36c77f68080ddb2fb49
parent323a329b266ccb8ef9f62ce7f15659983fe01764
logging: introduce log handling protocol

Define a new RPC protocol for the virtlogd daemon that provides
for handling of logs. The initial RPC method defined allows a
client to obtain a file handle to use for writing to a log
file for a guest domain. The file handle passed back will not
actually refer to the log file, but rather an anonymous pipe.
The virtlogd daemon will forward I/O between them, ensuring
file rotation happens when required.

Initially the log setup is hardcoded to cap log files at
128 KB, and keep 3 backups when rolling over, which gives
a max usage of 512 KB per guest.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
po/POTFILES.in
src/Makefile.am
src/logging/log_daemon.c
src/logging/log_daemon.h
src/logging/log_daemon_dispatch.c
src/logging/log_handler.c [new file with mode: 0644]
src/logging/log_handler.h [new file with mode: 0644]
src/logging/log_protocol.x