WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Log qemu-dm's message with date, time and pid

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Log qemu-dm's message with date, time and pid
From: Yosuke Iwamatsu <y-iwamatsu@xxxxxxxxxxxxx>
Date: Thu, 26 Jun 2008 14:02:54 +0900
Cc: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Delivery-date: Wed, 25 Jun 2008 22:03:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
The qemu-dm's log message doesn't have date, time, and pid. It is
difficult to find out the message we want.

This patch solves the problem without changing the codes which write
messages.

We developed a small program called ioemu-logger. qemu-dm creates a pipe
and starts ioemu-logger. qemu-dm associates a stream with the pipe, and
sets the stream to existing "logfile" variable. When qemu-dm writes a
message to "logfile", ioemu-logger receive it through the pipe and
outputs it with date, time and pid to the actual log file.

Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>

-----------------------
Yosuke Iwamatsu
        NEC Corporation



Attachment: ioemu-logger.patch
Description: all/allfiles

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel