Hi, 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.
Thanks Frank for helping me through the issue! --Vikram On Wed, Mar 30, 2011 at 11:43 PM, Frank Mehnert <[email protected]>wrote: > Vikram, > > On Thursday 31 March 2011 07:51:00 Vikram Kapoor wrote: > > What is the right way to enable logging for VirtualBox? I compiled VBox > > with LOG_ENABLED and VBOX_WITH_R0_LOGGING defined. > > > > Then I am running VirtualBox.exe with "VBOX_LOG=+all.f.l" and > > "VBOX_LOG_DEST=file=<file_path>" environement variables set. The file > does > > get created with a single logline in it but when I run a VM, no other > > messages are logged. > > Logging is normally automatically enabled in debug builds. So if you > compile > VirtualBox with > > export BUILD_TYPE=debug > kmk > > then the resulting build will be able to create debug log files. However, > that build will also include a lot of assertions and additional code for > debugging which makes VirtualBox slow. > > If you only want to enable logging then you have to add the following line > to LocalConfig.kmk in the root directory of the VirtualBox tree: > > DEFS += LOG_ENABLED > > After doing so, you have to recompile the whole beast of course. > When running VirtualBox, make sure to do > > export VBOX_LOG=+all.e.l.f > > -- the 'export' is important if you want to log the VBoxSVC server as well. > The log files are created in the current directory. > > Kind regards, > > Frank > -- > ORACLE Deutschland B.V. & Co. KG Dr.-Ing. Frank Mehnert > Werkstrasse 24 Staff Engineer, VirtualBox > 71384 Weinstadt, Germany mailto:[email protected] > > Hauptverwaltung: Riesstr. 25, D-80992 München > Registergericht: Amtsgericht München, HRA 95603 > > Komplementärin: ORACLE Deutschland Verwaltung B.V. > Rijnzathe 6, 3454PV De Meern, Niederlande > Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 > Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven > > _______________________________________________ > vbox-dev mailing list > [email protected] > http://vbox.innotek.de/mailman/listinfo/vbox-dev > >
_______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
