summaryrefslogtreecommitdiffstats
path: root/src/Common/Logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Logger.h')
-rw-r--r--src/Common/Logger.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Common/Logger.h b/src/Common/Logger.h
index 39ca5dd..f1cd33d 100644
--- a/src/Common/Logger.h
+++ b/src/Common/Logger.h
@@ -21,6 +21,7 @@
#define MAD_COMMON_LOGGER_H_
#include <algorithm>
+#include <cstdarg>
#include <list>
#include <string>
@@ -37,6 +38,8 @@ class Logger {
static std::list<Logger*> loggers;
MessageLevel level;
+ static void logfv(MessageLevel level, const char *format, va_list ap);
+
protected:
Logger() : level(DEFAULT) {}
@@ -48,6 +51,9 @@ class Logger {
log(DEFAULT, message);
}
+ static void logf(MessageLevel level, const char *format, ...);
+ static void logf(const char *format, ...);
+
static void registerLogger(Logger *logger) {
loggers.push_back(logger);
}