32 #ifdef LOG_MULTITHREAD
65 latestMsgPrintedOnFile_(false),
66 latestMsgPrintedOnConsole_(false)
68 gettimeofday(&initialTime_, NULL);
88 std::ostringstream oss;
91 struct tm *currTm = localtime(&currTime);
92 oss << outputFile <<
"_" <<
93 currTm->tm_mday <<
"_" <<
94 currTm->tm_mon <<
"_" <<
95 (1900 + currTm->tm_year) <<
"_" <<
96 currTm->tm_hour <<
"-" <<
97 currTm->tm_min <<
"-" <<
98 currTm->tm_sec <<
".log";
156 const std::string& message)
159 struct timeval currentTime;
160 gettimeofday(¤tTime, NULL);
165 (currentTime.tv_sec - initialTime_.tv_sec) <<
166 ":" << message <<
"\t\t[" << file <<
":" << line <<
"]" <<
188 const std::string& message)
191 struct timeval currentTime;
192 gettimeofday(¤tTime, NULL);
200 (currentTime.tv_sec - initialTime_.tv_sec) <<
201 ":" << message <<
"\t\t[" << file <<
":" << line <<
"]" <<