Re: [Qemu-devel] [PATCH v6 2/2] log: Make glib logging go through QEMU

2019-01-29 Thread Markus Armbruster
Christophe Fergeau writes: > This commit adds a qemu_init_logging() helper which calls > g_log_set_default_handler() so that glib logs (g_log, g_warning, ...) > are handled similarly to other QEMU logs. This means they will get a > timestamp if timestamps are enabled, and they will go through

Re: [Qemu-devel] [PATCH v6 2/2] log: Make glib logging go through QEMU

2019-01-28 Thread Stefan Hajnoczi
On Fri, Jan 25, 2019 at 06:22:29PM +0100, Christophe Fergeau wrote: > This commit adds a qemu_init_logging() helper which calls > g_log_set_default_handler() so that glib logs (g_log, g_warning, ...) > are handled similarly to other QEMU logs. This means they will get a > timestamp if timestamps

[Qemu-devel] [PATCH v6 2/2] log: Make glib logging go through QEMU

2019-01-25 Thread Christophe Fergeau
This commit adds a qemu_init_logging() helper which calls g_log_set_default_handler() so that glib logs (g_log, g_warning, ...) are handled similarly to other QEMU logs. This means they will get a timestamp if timestamps are enabled, and they will go through the HMP monitor if one is configured.