aboutsummaryrefslogtreecommitdiff
path: root/ble/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'ble/log.h')
-rw-r--r--ble/log.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ble/log.h b/ble/log.h
new file mode 100644
index 0000000..1d62121
--- /dev/null
+++ b/ble/log.h
@@ -0,0 +1,14 @@
+#ifndef LOG_H
+#define LOG_H
+
+#include <boost/log/core.hpp>
+#include <boost/log/trivial.hpp>
+#define D BOOST_LOG_TRIVIAL(debug)
+#define I BOOST_LOG_TRIVIAL(info)
+#define W BOOST_LOG_TRIVIAL(warning)
+
+#define DF BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << ": "
+#define IF BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": "
+#define WF BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << ": "
+
+#endif