summaryrefslogtreecommitdiff
path: root/Log.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Log.hh')
-rw-r--r--Log.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/Log.hh b/Log.hh
new file mode 100644
index 0000000..dfb0cc9
--- /dev/null
+++ b/Log.hh
@@ -0,0 +1,17 @@
+#ifndef PCC_LOG_H
+#define PCC_LOG_H
+
+#include <cstdarg>
+#include <cstdio>
+
+namespace pcc {
+enum LogLevel { PCC_ERROR, PCC_WARNING, PCC_INFO, PCC_DEBUG };
+
+extern LogLevel CurrentLogLevel;
+
+void SetLogLevel(LogLevel level);
+
+void Log(LogLevel level, const char* format, ...);
+} // namespace pcc
+
+#endif