Hi,<br><br>The issue was that I was using 'set' on Windows to set the environment variable VBOX_LOG. I should have been using 'setx' so that variable could be properly exported to VirtualBox.exe.<br><br>Thanks Frank for helping me through the issue!<br>
--Vikram <br><br><div class="gmail_quote">On Wed, Mar 30, 2011 at 11:43 PM, Frank Mehnert <span dir="ltr"><<a href="mailto:frank.mehnert@oracle.com">frank.mehnert@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Vikram,<br>
<div><div></div><div class="h5"><br>
On Thursday 31 March 2011 07:51:00 Vikram Kapoor wrote:<br>
> What is the right way to enable logging for VirtualBox? I compiled VBox<br>
> with LOG_ENABLED and VBOX_WITH_R0_LOGGING defined.<br>
><br>
> Then I am running VirtualBox.exe with "VBOX_LOG=+all.f.l" and<br>
> "VBOX_LOG_DEST=file=<file_path>" environement variables set.  The file does<br>
> get created with a single logline in it but when I run a VM, no other<br>
> messages are logged.<br>
<br>
</div></div>Logging is normally automatically enabled in debug builds. So if you compile<br>
VirtualBox with<br>
<br>
  export BUILD_TYPE=debug<br>
  kmk<br>
<br>
then the resulting build will be able to create debug log files. However,<br>
that build will also include a lot of assertions and additional code for<br>
debugging which makes VirtualBox slow.<br>
<br>
If you only want to enable logging then you have to add the following line<br>
to LocalConfig.kmk in the root directory of the VirtualBox tree:<br>
<br>
  DEFS += LOG_ENABLED<br>
<br>
After doing so, you have to recompile the whole beast of course.<br>
When running VirtualBox, make sure to do<br>
<br>
  export VBOX_LOG=+all.e.l.f<br>
<br>
-- the 'export' is important if you want to log the VBoxSVC server as well.<br>
The log files are created in the current directory.<br>
<br>
Kind regards,<br>
<br>
Frank<br>
--<br>
ORACLE Deutschland B.V. & Co. KG   Dr.-Ing. Frank Mehnert<br>
Werkstrasse 24                     Staff Engineer, VirtualBox<br>
71384 Weinstadt, Germany           mailto:<a href="mailto:frank.mehnert@oracle.com">frank.mehnert@oracle.com</a><br>
<br>
Hauptverwaltung: Riesstr. 25, D-80992 München<br>
Registergericht: Amtsgericht München, HRA 95603<br>
<br>
Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>
Rijnzathe 6, 3454PV De Meern, Niederlande<br>
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven<br>
<br>_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
<br></blockquote></div><br>