From mboxrd@z Thu Jan 1 00:00:00 1970 From: "sun.shuchun" Subject: Re: how to ouput log messages of pygrub into user console Date: Mon, 08 Feb 2010 18:20:32 +0900 Message-ID: <4B6FD760.40209@jp.fujitsu.com> References: <4B6F5ED4.8080606@jp.fujitsu.com> <20100208073132.GK2861@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100208073132.GK2861@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?UTF-8?B?UGFzaSBLw6Rya2vDpGluZW4=?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello Mr Pasi, Thank you for your reply! I did as what you told me to do, but I can not get any message in the user console. I insert a print command like : print "this is a test", then I carried out "xm create -f /etc/xen/ -c". Do I have any mistake in the opreations above? Or any other nessary opreation was missed. I did get a message in the user console by creating a new fifo file at=20 XendBootloader.py. But, I don't know a much easier way to solve it. Regards. sun shuchun Pasi K=C3=A4rkk=C3=A4inen =E3=81=95=E3=82=93=E3=81=AF=E6=9B=B8=E3=81=8D=E3= =81=BE=E3=81=97=E3=81=9F: > On Mon, Feb 08, 2010 at 09:46:12AM +0900, sun.shuchun wrote: >> Hello, everyone! >> >> I have somes questions as follows: >> >> I found there are some print commands in the pygrub, >> but I don't know where pygrub outputs them. >> >> Could anyone tell me some details about this? >> >=20 > "xm create -f /etc/xen/ -c" will show the pygrub console. >=20 > I don't know if it can be redirected to vfb..=20 >=20 > -- Pasi >=20 >> Also, >> I wanted to output some log messages into "/var/log/xen/xend.log" >> and tried to "from XendLogging import log", >> but failed to import the log object. >> What should I do for this if I want to use the log object that already >> have in the xen source? >> >> Regards. >> Sun Shuchun >> >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 >=20