Cedric Bosdonnat writes ("Re: [Xen-devel] per-domain logging"):
> On Thu, 2016-09-15 at 16:11 +0100, Wei Liu wrote:
> > IIRC there is already logfile abstraction inside libvirt -- can you just
> > pass in a libvirt logfile fd and try to demux there?
> The abstraction we have is something similar to the XenToolLogger,
> not something abstracting the log files. Even if we had that, how
> could we demux since there is no domain name in the libxl messages.
It's not trivial to change the xtl API because there is no
negotiation, just a vops structure. I can think of a way to do it,
but do we want to make all xtl logger users (that is, all generators
of log messages) pass a domid ?
Do we want to extend this to other information ? (Not sure _what_
Alternatively, we could have libxl (and perhaps libxc) put the domid
in a standard format in the message, so it could be extracted ?
However we do it, we would have to add a domid to every LOG call in
Xen-devel mailing list