From 046be756fc2eda8876dcc0ff7178193c08d36487 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 6 Feb 2019 12:05:01 +0100 Subject: [PATCH] doc: Document G_MESSAGES_DEBUG use Explain how to get more verbose logs out of spice-server Signed-off-by: Christophe Fergeau Acked-by: Frediano Ziglio --- docs/manual/manual.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/manual/manual.txt b/docs/manual/manual.txt index 99f6a5c8..9de3c470 100644 --- a/docs/manual/manual.txt +++ b/docs/manual/manual.txt @@ -1203,10 +1203,20 @@ Server side If the virtual machine was started using QEMU directly, SPICE server logs will be output to your console stdout. + When using libvirt, logs are located in `/var/log/libvirt/qemu/` for the qemu system instance (`qemu:///system`), and in `~/.cache/libvirt/qemu/log` for the qemu session instance (`qemu:///session`). +It's possible to get more verbose output by setting the `G_MESSAGES_DEBUG` +environment variable to `Spice` or `all` before starting QEMU as described in +https://developer.gnome.org/glib/stable/glib-running.html[GLib documentation]. + +When using libvirt, the environment variable needs to be set from the XML +domain definition as described in +https://libvirt.org/drvqemu.html#qemucommand[libvirt documentation]. + + Client side -----------