Skip to contentSkip to conversation

how to ouput log messages of pygrub into user console

DISCUSSION sun.shuchun 2 participants 3 messages Feb 8, 2010

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 9 lines · sun.shuchun

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

Quoted 17 lines

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
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

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 さんは書きました:

Quoted 41 lines · sun.shuchun
Quoted 9 lines

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

Quoted 13 lines

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

Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel