mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-02 12:17:10 -05:00
23 lines
410 B
C++
23 lines
410 B
C++
|
#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, ...) {
|
||
|
}
|