From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Vasiliy Tolstov <v.tolstov@selfip.ru>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: redirect qemu-dm log to syslog
Date: Fri, 8 Feb 2013 11:46:49 +0000 [thread overview]
Message-ID: <5114E5A9.4090200@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1302081138310.4275@kaball.uk.xensource.com>
On 08/02/13 11:42, Stefano Stabellini wrote:
> On Thu, 7 Feb 2013, Vasiliy Tolstov wrote:
>> I'm search mailing list and can't see any questions and answers...
>> Is that possible (and how) to redirect qemu-dm output (stored in
>> /var/log/xen/qemu-dm-xxx.log) to syslog and not write to file?
> Not easily, unless you find a way to capture QEMU's stdout and stderr
> and send it to syslog using an external tool. You can replace the QEMU
> binary with a script that spawns QEMU and a syslog logger to do this.
>
> You can also play nasty tricks with preprocessor macros and turn all
> QEMU's printf into syslog calls. Of course such a patch wouldn't be
> acceptable upstream.
This was attempted in XenServer, and is harder than just changing the
printf calls. In the end we gave up and just wrapped stdout/stderr.
~Andrew
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
prev parent reply other threads:[~2013-02-08 11:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-07 12:32 redirect qemu-dm log to syslog Vasiliy Tolstov
2013-02-08 11:42 ` Stefano Stabellini
2013-02-08 11:46 ` Andrew Cooper [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5114E5A9.4090200@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=v.tolstov@selfip.ru \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.