All of lore.kernel.org
 help / color / mirror / Atom feed
* how to ouput log messages of pygrub into user console
@ 2010-02-08  0:46 sun.shuchun
  2010-02-08  7:31 ` Pasi Kärkkäinen
  0 siblings, 1 reply; 3+ messages in thread
From: sun.shuchun @ 2010-02-08  0:46 UTC (permalink / raw)
  To: xen-devel

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?

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to ouput log messages of pygrub into user console
  2010-02-08  0:46 how to ouput log messages of pygrub into user console sun.shuchun
@ 2010-02-08  7:31 ` Pasi Kärkkäinen
  2010-02-08  9:20   ` sun.shuchun
  0 siblings, 1 reply; 3+ messages in thread
From: Pasi Kärkkäinen @ 2010-02-08  7:31 UTC (permalink / raw)
  To: sun.shuchun; +Cc: xen-devel

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?
> 

"xm create -f /etc/xen/<guest> -c" will show the pygrub console.

I don't know if it can be redirected to vfb.. 

-- Pasi

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to ouput log messages of pygrub into user console
  2010-02-08  7:31 ` Pasi Kärkkäinen
@ 2010-02-08  9:20   ` sun.shuchun
  0 siblings, 0 replies; 3+ messages in thread
From: sun.shuchun @ 2010-02-08  9:20 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel

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/<guest> -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 
XendBootloader.py.

But, I don't know a much easier way to solve it.

Regards.

sun shuchun

Pasi Kärkkäinen さんは書きました:
> 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?
>>
> 
> "xm create -f /etc/xen/<guest> -c" will show the pygrub console.
> 
> I don't know if it can be redirected to vfb.. 
> 
> -- Pasi
> 
>> 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
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-08  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-08  0:46 how to ouput log messages of pygrub into user console sun.shuchun
2010-02-08  7:31 ` Pasi Kärkkäinen
2010-02-08  9:20   ` sun.shuchun

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.