geode/loader/dobby/external/logging/cxxlogging.cc

23 lines
410 B
C++
Raw Normal View History

2022-07-30 12:24:03 -04:00
#include "logging/cxxlogging.h"
#include <cstring>
#include <cstdio>
#include <cstdarg>
#include <vector>
void Logger::setLogLevel(LogLevel level) {
log_level_ = level;
}
void Logger::log(LogLevel level, const char *tag, const char *fmt, ...) {
if (level > log_level_) {
va_list ap;
va_start(ap, fmt);
vprintf(fmt, ap);
va_end(ap);
}
}
void Logger::LogFatal(const char *fmt, ...) {
}