| 93 | } |
| 94 | |
| 95 | void LogMessage::DoLogging(FILE* file, const struct tm& tm_time) { |
| 96 | fprintf(file, "[%c d%02d%02d t%02d:%02d:%02d p%05d:%03d %s:%d] %s\n", |
| 97 | "IWEF"[severity_], 1 + tm_time.tm_mon, tm_time.tm_mday, |
| 98 | tm_time.tm_hour, tm_time.tm_min, tm_time.tm_sec, GetPID(), |
| 99 | static_cast<unsigned>(GetTID() % 1000), fname_, line_, str().c_str()); |
| 100 | } |
| 101 | |
| 102 | LogMessage::~LogMessage() { GenerateLogMessage(); } |
| 103 |