]> git.tdb.fi Git - builder.git/blobdiff - source/logger.h
Better logging system
[builder.git] / source / logger.h
diff --git a/source/logger.h b/source/logger.h
new file mode 100644 (file)
index 0000000..c22339f
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef LOGGER_H_
+#define LOGGER_H_
+
+#include <set>
+#include <string>
+
+class Logger
+{
+private:
+       std::set<std::string> enabled_channels;
+
+public:
+       void enable_channel(const std::string &);
+       void disable_channel(const std::string &);
+
+       void log(const std::string &, const std::string &) const;
+};
+
+#endif