Re: [Qemu-devel] [PATCH v2] log: Make glib logging go through QEMU

2018-12-13 Thread Christophe Fergeau
On Thu, Dec 13, 2018 at 11:52:12AM +, Daniel P. Berrangé wrote: > On Thu, Dec 13, 2018 at 12:26:12PM +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

Re: [Qemu-devel] [PATCH v2] log: Make glib logging go through QEMU

2018-12-13 Thread Daniel P . Berrangé
On Thu, Dec 13, 2018 at 12:26:12PM +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 v2] log: Make glib logging go through QEMU

2018-12-13 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 monitor if one is configured. This