aboutsummaryrefslogtreecommitdiff
path: root/include/Log.hpp
diff options
context:
space:
mode:
authorAleksi Lindeman <0xdec05eba@gmail.com>2018-03-13 03:03:11 +0100
committerAleksi Lindeman <0xdec05eba@gmail.com>2018-03-13 03:06:45 +0100
commitf84aba861d26601ae4c7203daa39752e7c95cfd8 (patch)
tree2b39728d07fb370e87b05ba2fb63958e5ad8fb28 /include/Log.hpp
parent1328d943c5016dd1662a4e46d4a408bca010cffc (diff)
Fix add data operation not working correctly
Reminder: do not get reference to hash map value... duh Add thread-safe logging (log is in order now!). Store data immediately to database when WE add it instead of waiting for response from remote peers. TODO: Test with multiple peers (not only localhost)
Diffstat (limited to 'include/Log.hpp')
-rw-r--r--include/Log.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/Log.hpp b/include/Log.hpp
new file mode 100644
index 0000000..d09c2a2
--- /dev/null
+++ b/include/Log.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+namespace odhtdb
+{
+ class Log
+ {
+ public:
+ static void debug(const char *fmt, ...);
+ static void warn(const char *fmt, ...);
+ static void error(const char *fmt, ...);
+ };
+}