VirtualBox

Changeset 7602 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Mar 27, 2008 5:25:37 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29102
Message:

Runtime: switch guest R3 logging from backdoor to normal (with RTLOGDEST_USER), except for the mini runtime. Remove LOG_TO_BACKDOOR_FULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r7539 r7602  
    3838#include <iprt/thread.h>
    3939#include <VBox/VBoxGuest.h>
     40#include <VBox/log.h>
    4041#include "VBGLR3Internal.h"
    4142
     
    162163#endif
    163164
     165    /* Create release logger */
     166    PRTLOGGER loggerRelease;
     167    static const char * const s_apszGroups[] = VBOX_LOGGROUP_NAMES;
     168    int rrc = RTLogCreate(&loggerRelease, 0, NULL, "VBOXGUEST_RELEASE_LOG",
     169                         RT_ELEMENTS(s_apszGroups), &s_apszGroups[0],
     170                         RTLOGDEST_USER, "VBox.log");
     171    /* This may legitimately fail if we are using the mini-runtime. */
     172    if (RT_SUCCESS(rrc))
     173        RTLogRelSetDefaultInstance(loggerRelease);
     174
    164175    return VINF_SUCCESS;
    165176}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette