| 46 | } |
| 47 | |
| 48 | void 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 | |
| 61 | void Logger::LogStatus(const char *format, ...) { |
| 62 | if (impl_->log_func != nullptr) { |
nothing calls this directly
no outgoing calls
no test coverage detected