MCPcopy Create free account
hub / github.com/Tencent/phxqueue / GetInstance

Method GetInstance

phxqueue/comm/logger.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40Logger::Logger() : impl_(new LoggerImpl()) {}
41
42Logger *Logger::GetInstance() {
43 static Logger logger;
44
45 return &logger;
46}
47
48void Logger::LogError(const char *format, ...) {
49 string newFormat("\033[41;37m " + string(format) + " \033[0m");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected