virLogEmergencyDumpAll() allows to dump the content of the
debug buffer from within a signal handler. It saves to all
log file or stderr if none is found
* src/util/logging.h src/util/logging.c: add the new API
and cleanup the old virLogDump code
* src/libvirt_private.syms: exports it as a private symbol
Signed-off-by: Daniel Veillard <veillard(a)redhat.com>
---
src/libvirt_private.syms | 1 +
src/util/logging.c | 87 +++++++++++++++++++++++++++------------------
src/util/logging.h | 2 +-
3 files changed, 54 insertions(+), 36 deletions(-)