MCPcopy Create free account
hub / github.com/apache/singa / DoLogging

Method DoLogging

src/utils/logging.cc:95–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void 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
102LogMessage::~LogMessage() { GenerateLogMessage(); }
103

Callers

nothing calls this directly

Calls 2

GetPIDFunction · 0.85
GetTIDFunction · 0.85

Tested by

no test coverage detected