[libvirt] [PATCH 2/6] Change default log policy to libvirtd.log instead of syslog

Daniel Veillard veillard at redhat.com
Fri Mar 4 10:30:53 UTC 2011


Syslog is not the best place to go search for libvirt error
logs, change it to a default file output libvirtd.log, but
still keep standard error if not run as a daemon.
Depending on whether it's run as root or user, the log is saved
in the local state dir or in $HOME/.libvirt.
* daemon/libvirtd.c: change default logging to go to libvirtd.log

Signed-off-by: Daniel Veillard <veillard at redhat.com>
---
 daemon/libvirtd.c |   56 ++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 43 insertions(+), 13 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Change-default-log-policy-to-libvirtd.log-instead-of.patch
Type: text/x-patch
Size: 3668 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110304/adcce1d8/attachment-0001.bin>


More information about the libvir-list mailing list