- Timestamp:
- Mar 4, 2019 3:58:23 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129162
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r76553 r77557 570 570 "VBOXTRAY_RELEASE_LOG", 571 571 #endif 572 RT_ELEMENTS(s_apszGroups), s_apszGroups, RTLOGDEST_STDOUT,572 RT_ELEMENTS(s_apszGroups), s_apszGroups, UINT32_MAX, RTLOGDEST_STDOUT, 573 573 vboxTrayLogHeaderFooter, g_cHistory, g_uHistoryFileSize, g_uHistoryFileTime, 574 574 RTErrInfoInitStatic(&ErrInfo), pszLogFile); -
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r76553 r77557 318 318 "VBOXSERVICE_RELEASE_LOG", 319 319 #endif 320 RT_ELEMENTS(s_apszGroups), s_apszGroups, 320 RT_ELEMENTS(s_apszGroups), s_apszGroups, UINT32_MAX /*cMaxEntriesPerGroup*/, 321 321 RTLOGDEST_STDOUT | RTLOGDEST_USER, 322 322 vgsvcLogHeaderFooter, g_cHistory, g_uHistoryFileSize, g_uHistoryFileTime, -
trunk/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp
r76553 r77557 935 935 fFlags |= RTLOGFLAGS_USECRLF; 936 936 #endif 937 int rc = RTLogCreateEx(&g_pLoggerRelease, fFlags, "all", 938 "VBOXGREETER_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups, 939 RTLOGDEST_STDOUT, 937 int rc = RTLogCreateEx(&g_pLoggerRelease, fFlags, "all", "VBOXGREETER_RELEASE_LOG", 938 RT_ELEMENTS(s_apszGroups), s_apszGroups, UINT32_MAX /*cMaxEntriesPerGroup*/, RTLOGDEST_STDOUT, 940 939 vboxGreeterLogHeaderFooter, g_cHistory, g_uHistoryFileSize, g_uHistoryFileTime, 941 940 NULL /*pErrInfo*/, pszLogFile); -
trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp
r76553 r77557 132 132 133 133 int vrc = RTLogCreateEx(&loggerRelease, fFlags, "all", 134 "VBOX_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups, enmLogDest,134 "VBOX_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups, UINT32_MAX, enmLogDest, 135 135 NULL /* pfnBeginEnd */, 0 /* cHistory */, 0 /* cbHistoryFileMax */, 0 /* uHistoryTimeMax */, 136 136 NULL /* pErrInfo */, pszFilenameFmt, pszFilename, RTTimeMilliTS()); -
trunk/src/VBox/Main/glue/VBoxLogRelCreate.cpp
r77555 r77557 150 150 #endif 151 151 g_pszLogEntity = pcszEntity; 152 int vrc = RTLogCreateEx(&pReleaseLogger, fFlags, pcszGroupSettings, 153 pcszEnvVarBase, RT_ELEMENTS(s_apszGroups), s_apszGroups, fDestFlags,152 int vrc = RTLogCreateEx(&pReleaseLogger, fFlags, pcszGroupSettings, pcszEnvVarBase, 153 RT_ELEMENTS(s_apszGroups), s_apszGroups, cMaxEntriesPerGroup, fDestFlags, 154 154 vboxHeaderFooter, cHistory, uHistoryFileSize, uHistoryFileTime, 155 155 pErrInfo, pcszLogFile ? "%s" : NULL, pcszLogFile); 156 156 if (RT_SUCCESS(vrc)) 157 157 { 158 /* make sure that we don't flood logfiles */159 RTLogSetGroupLimit(pReleaseLogger, cMaxEntriesPerGroup);160 161 158 /* explicitly flush the log, to have some info when buffering */ 162 159 RTLogFlush(pReleaseLogger); -
trunk/src/VBox/Runtime/common/log/log.cpp
r76553 r77557 782 782 783 783 784 RTDECL(int) RTLogCreateExV(PRTLOGGER *ppLogger, uint32_t fFlags, const char *pszGroupSettings, 785 const char *pszEnvVarBase, unsigned cGroups, const char * const *papszGroups,784 RTDECL(int) RTLogCreateExV(PRTLOGGER *ppLogger, uint32_t fFlags, const char *pszGroupSettings, const char *pszEnvVarBase, 785 unsigned cGroups, const char * const *papszGroups, uint32_t cMaxEntriesPerGroup, 786 786 uint32_t fDestFlags, PFNRTLOGPHASE pfnPhase, uint32_t cHistory, 787 787 uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, … … 841 841 else 842 842 pLogger->pInt->pacEntriesPerGroup = NULL; 843 pLogger->pInt->cMaxEntriesPerGroup = UINT32_MAX;843 pLogger->pInt->cMaxEntriesPerGroup = cMaxEntriesPerGroup ? cMaxEntriesPerGroup : UINT32_MAX; 844 844 # ifdef IN_RING3 845 845 pLogger->pInt->pfnPhase = pfnPhase; … … 939 939 if (pszValue) 940 940 RTLogGroupSettings(pLogger, pszValue); 941 942 /* 943 * Group limit. 944 */ 945 strcpy(pszEnvVar + cchEnvVarBase, "_MAX_PER_GROUP"); 946 pszValue = RTEnvGet(pszEnvVar); 947 if (pszValue) 948 { 949 uint32_t cMax; 950 rc = RTStrToUInt32Full(pszValue, 0, &cMax); 951 if (RT_SUCCESS(rc)) 952 pLogger->pInt->cMaxEntriesPerGroup = cMax ? cMax : UINT32_MAX; 953 else 954 AssertMsgFailed(("Invalid group limit! %s=%s\n", pszEnvVar, pszValue)); 955 } 956 941 957 } 942 958 # else /* !IN_RING3 */ … … 1017 1033 1018 1034 va_start(args, pszFilenameFmt); 1019 rc = RTLogCreateExV(ppLogger, fFlags, pszGroupSettings, pszEnvVarBase, cGroups, papszGroups, 1020 fDestFlags, NULL /*pfnPhase*/, 0 /*cHistory*/, 0 /*cbHistoryFileMax*/, 0 /*cSecsHistoryTimeSlot*/, 1035 rc = RTLogCreateExV(ppLogger, fFlags, pszGroupSettings, pszEnvVarBase, 1036 cGroups, papszGroups, UINT32_MAX /*cMaxEntriesPerGroup*/, fDestFlags, 1037 NULL /*pfnPhase*/, 0 /*cHistory*/, 0 /*cbHistoryFileMax*/, 0 /*cSecsHistoryTimeSlot*/, 1021 1038 NULL /*pErrInfo*/, pszFilenameFmt, args); 1022 1039 va_end(args); … … 1026 1043 1027 1044 1028 RTDECL(int) RTLogCreateEx(PRTLOGGER *ppLogger, uint32_t fFlags, const char *pszGroupSettings, 1029 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups,1045 RTDECL(int) RTLogCreateEx(PRTLOGGER *ppLogger, uint32_t fFlags, const char *pszGroupSettings, const char *pszEnvVarBase, 1046 unsigned cGroups, const char * const *papszGroups, uint32_t cMaxEntriesPerGroup, 1030 1047 uint32_t fDestFlags, PFNRTLOGPHASE pfnPhase, uint32_t cHistory, 1031 1048 uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, … … 1036 1053 1037 1054 va_start(args, pszFilenameFmt); 1038 rc = RTLogCreateExV(ppLogger, fFlags, pszGroupSettings, pszEnvVarBase, cGroups, papszGroups, 1055 rc = RTLogCreateExV(ppLogger, fFlags, pszGroupSettings, pszEnvVarBase, cGroups, papszGroups, cMaxEntriesPerGroup, 1039 1056 fDestFlags, pfnPhase, cHistory, cbHistoryFileMax, cSecsHistoryTimeSlot, 1040 1057 pErrInfo, pszFilenameFmt, args);
Note:
See TracChangeset
for help on using the changeset viewer.