| 96 | } |
| 97 | |
| 98 | void Logger::LogVerbose(const char *format, ...) { |
| 99 | string newFormat("\033[45;37m " + string(format) + " \033[0m"); |
| 100 | |
| 101 | if (impl_->log_func != nullptr) { |
| 102 | va_list args; |
| 103 | va_start(args, format); |
| 104 | impl_->log_func(static_cast<int>(LogLevel::Verbose), newFormat.c_str(), args); |
| 105 | va_end(args); |
| 106 | |
| 107 | return; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | void Logger::SetLogFunc(LogFunc log_func) { |
| 112 | impl_->log_func = log_func; |
nothing calls this directly
no outgoing calls
no test coverage detected