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

Method LogWarning

phxqueue/comm/logger.cpp:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void Logger::LogWarning(const char *format, ...) {
73 string newFormat("\033[44;37m " + string(format) + " \033[0m");
74
75 if (impl_->log_func != nullptr) {
76 va_list args;
77 va_start(args, format);
78 impl_->log_func(static_cast<int>(LogLevel::Warning), newFormat.c_str(), args);
79 va_end(args);
80
81 return;
82 }
83}
84
85void Logger::LogInfo(const char *format, ...) {
86 string newFormat("\033[45;37m " + string(format) + " \033[0m");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected