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

Method LogError

phxqueue/comm/logger.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void Logger::LogError(const char *format, ...) {
49 string newFormat("\033[41;37m " + string(format) + " \033[0m");
50
51 if (impl_->log_func != nullptr) {
52 va_list args;
53 va_start(args, format);
54 impl_->log_func(static_cast<int>(LogLevel::Error), newFormat.c_str(), args);
55 va_end(args);
56
57 return;
58 }
59}
60
61void Logger::LogStatus(const char *format, ...) {
62 if (impl_->log_func != nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected