VirtualBox

Changes between Version 16 and Version 17 of VBoxLogging


Ignore:
Timestamp:
Jan 16, 2015 9:25:49 AM (9 years ago)
Author:
Michael Thayer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VBoxLogging

    v16 v17  
    33The generic description of the IPRT logging facility is found in [/browser/trunk/src/VBox/Runtime/VBox/log-vbox.cpp#L27 Runtime/VBox/log-vbox.cpp].
    44
    5 IPRT log group names are found in [/browser/trunk/include/iprt/log.h include/iprt/log.h] [[BR]]
    6 !VirtualBox log group names are found in [/browser/trunk/include/VBox/log.h include/VBox/log.h]
     5IPRT log group names and logging flags are found in [/browser/trunk/include/iprt/log.h include/iprt/log.h] [[BR]]
     6!VirtualBox log group names and flags are found in [/browser/trunk/include/VBox/log.h include/VBox/log.h]
    77
    88!VirtualBox uses the env.vars `VBOX_LOG`, `VBOX_LOG_DEST` and `VBOX_LOG_FLAGS` to
     
    1818
    1919{{{
    20 set VBOX_LOG=em=~0 rem* -rem_mmio
    21 set VBOX_LOG_FLAGS=buffered thread tsc
     20set VBOX_LOG=em=~0 rem* -rem_mmio       # Enable all EM group logging and all level 1 REM*
     21                                        # groups logging except REM_MMIO.
     22set VBOX_LOG_FLAGS=buffered thread tsc  # Buffer log output, print thread IDs in the log
     23                                        # statements, print TSC values
    2224}}}
    2325
     
    2527export VBOX_RELEASE_LOG="rem*.e.l.f main gui"
    2628export VBOX_RELEASE_LOG_FLAGS="buffered thread msprog"
     29# Disable the limit of log entries from each group
     30export VBOX_RELEASE_LOG_FLAGS=-restrict_groups
    2731}}}
    2832
     
    108112'''NOTE:''' If you have release build of GAs installed into your Windows guest, please also consider to set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VBoxGuest\LoggingEnabled registry key to value 0xFF (DWORD 32bit) in order to enable R3 logging into VMM backdoor.
    109113
     114== Changing settings using VBoxManage ==
     115
     116The VBoxManage command line tool can be used to change the log settings of a running virtual machine.  Examples:
     117
     118{{{
     119$ VBoxManage debugvm <name> log --release +dev_vga.e.l.f
     120$ VBoxManage debugvm <name> logdest --debug stdout
     121$ VBoxManage debugvm <name> logflags --release -restrict_groups
     122$ VBoxManage debugvm <name> show logdbg-settings
     123}}}
     124
    110125== Changing settings inside a debugger ==
    111126
    112 Logging settings can be changed at runtime using a debugger.  Here are two examples with gdb:
     127Logging settings can be changed at runtime using a debugger.  This is mainly useful for VBoxSVC.  Here are two examples with gdb:
    113128
    114129{{{

© 2023 Oracle
ContactPrivacy policyTerms of Use