19 Logger* Logger::s_current_logger =
nullptr;
25 va_start(args, format);
26 formatted_string.
vformat(format, args);
32 if (Logger::s_current_logger !=
nullptr) {
33 Logger::s_current_logger->writeMessage(
string);
38 Logger::s_current_logger = logger;
static void registerLogger(Logger *logger)
register a logger implementation
static void log(const char *format,...)
log a formated string with supplied arguments
void vformat(const CHAR *formatString, va_list args)
write formatted string to buffer using va_list