Motivation comes from the case when libguestfs has repeatedly created
transient VMs, which in turn created lots of logs without any mechanism
to delete it afterwards.
More motivation in [1]. Previous attempt in [2].
[1]:
https://listman.redhat.com/archives/libvir-list/2022-February/msg00425.html
[2]:
https://listman.redhat.com/archives/libvir-list/2022-February/msg00865.html
Oleg Vasilev (2):
logging: refactor to store config inside log handler
logging: add log cleanup for obsolete domains
src/logging/log_daemon.c | 6 +-
src/logging/log_daemon_config.c | 9 ++
src/logging/log_daemon_config.h | 3 +
src/logging/log_handler.c | 137 +++++++++++++++++++++++++++----
src/logging/log_handler.h | 17 ++--
src/logging/test_virtlogd.aug.in | 2 +
src/logging/virtlogd.aug | 2 +
src/logging/virtlogd.conf | 7 ++
8 files changed, 153 insertions(+), 30 deletions(-)
--
2.38.1