Where does RTPrintf do its printing?

Discussions related to using the OSE version of VirtualBox.
Post Reply
aztec
Posts: 2
Joined: 20. Feb 2009, 04:08

Where does RTPrintf do its printing?

Post by aztec »

I am new to VirtualBox OSE. I am learning how to use VirtualBox's XPCOM interface. It seems that I can use either RTPrintf or Log to log information. My question is, where does RTPrintf or Log do its printing? I tried both of them and nothing showed up in the host log file.

thanks so much :cry:
umoeller
Posts: 17
Joined: 10. May 2007, 10:25

Re: Where does RTPrintf do its printing?

Post by umoeller »

Regarding logging, please see src/VBox/Runtime/VBox/log-vbox.cpp, which has some doxygen introductory notes. Use kmk docs to build the documentation, this then ends up in the IPRT (runtime) category.

Regarding printf, RTPrintf should work, but I'm guessing you have added RTPrintf statements to code that runs in the VBoxSVC process, which gets launched automatically by any vbox program (such as VirtualBox or VBoxManage) and then runs detached. So print statements won't show up on the terminal unless you start VBoxSVC manually before starting the other vbox program.
Post Reply