From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: redirect qemu-dm log to syslog Date: Fri, 8 Feb 2013 11:46:49 +0000 Message-ID: <5114E5A9.4090200@citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Vasiliy Tolstov , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org 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