- Timestamp:
- Nov 16, 2009 2:52:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/generic/OpenGLTestApp.cpp
r24694 r24696 111 111 112 112 #ifdef VBOXGLTEST_WITH_LOGGING 113 static int vboxInitLogging(const char *pszFilename )113 static int vboxInitLogging(const char *pszFilename, bool bGenNameSuffix) 114 114 { 115 115 PRTLOGGER loggerRelease; … … 124 124 if(pszFilename) 125 125 { 126 pszFilenameFmt = "%s"; 126 if(bGenNameSuffix) 127 pszFilenameFmt = "%s.%ld.log"; 128 else 129 pszFilenameFmt = "%s"; 127 130 enmLogDest = RTLOGDEST_FILE; 128 131 } … … 135 138 int vrc = RTLogCreateEx(&loggerRelease, fFlags, "all", 136 139 "VBOX_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups, 137 RTLOGDEST_FILE, szError, sizeof(szError), pszFilenameFmt, pszFilename);140 enmLogDest, szError, sizeof(szError), pszFilenameFmt, pszFilename, RTTimeMilliTS()); 138 141 if (RT_SUCCESS(vrc)) 139 142 { … … 242 245 #ifdef VBOXGLTEST_WITH_LOGGING 243 246 bool bLog = false; 247 bool bLogSuffix = false; 244 248 const char * pLog; 245 249 #endif … … 322 326 if(pLog) 323 327 bLog = true; 328 bLogSuffix = true; 324 329 } 325 330 if(bLog) 326 rc = vboxInitLogging(pLog );331 rc = vboxInitLogging(pLog, bLogSuffix); 327 332 else 328 333 #endif
Note:
See TracChangeset
for help on using the changeset viewer.