VirtualBox

Changeset 84748 in vbox


Ignore:
Timestamp:
Jun 9, 2020 8:29:17 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: create VBoxUI.log for the separate UI process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r84741 r84748  
    44514451        }
    44524452        m_strManagedVMId = machine.GetId();
     4453
     4454        if (m_fSeparateProcess)
     4455        {
     4456            /* Create a log file for VirtualBoxVM process. */
     4457            QString str = machine.GetLogFolder();
     4458            com::Utf8Str logDir(str.toUtf8().constData());
     4459
     4460            /* make sure the Logs folder exists */
     4461            if (!RTDirExists(logDir.c_str()))
     4462                RTDirCreateFullPath(logDir.c_str(), 0700);
     4463
     4464            com::Utf8Str logFile = com::Utf8StrFmt("%s%cVBoxUI.log",
     4465                                                   logDir.c_str(), RTPATH_DELIMITER);
     4466
     4467            com::VBoxLogRelCreate("GUI (separate)", logFile.c_str(),
     4468                                  RTLOGFLAGS_PREFIX_TIME_PROG | RTLOGFLAGS_RESTRICT_GROUPS,
     4469                                  "all all.restrict -default.restrict",
     4470                                  "VBOX_RELEASE_LOG", RTLOGDEST_FILE,
     4471                                  32768 /* cMaxEntriesPerGroup */,
     4472                                  0 /* cHistory */, 0 /* uHistoryFileTime */,
     4473                                  0 /* uHistoryFileSize */, NULL);
     4474        }
    44534475    }
    44544476
Note: See TracChangeset for help on using the changeset viewer.

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