summaryrefslogtreecommitdiff
path: root/common/nslog_log.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-11 14:34:17 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-11 14:34:17 -0700
commit7ffe4a7858bc5d071b87612bdaa19d8eaf29045c (patch)
tree701750687b9331dcd290d9831ad8b62be9a97cae /common/nslog_log.hpp
parentf3c55eba9da59042a96e683f841060674519520b (diff)
downloadqtlocation-mapboxgl-7ffe4a7858bc5d071b87612bdaa19d8eaf29045c.tar.gz
add nslog and stderr log backends
Diffstat (limited to 'common/nslog_log.hpp')
-rw-r--r--common/nslog_log.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/common/nslog_log.hpp b/common/nslog_log.hpp
new file mode 100644
index 0000000000..d4ea6f6eaa
--- /dev/null
+++ b/common/nslog_log.hpp
@@ -0,0 +1,20 @@
+#ifndef LLMR_COMMON_NSLOG_LOG
+#define LLMR_COMMON_NSLOG_LOG
+
+#include <llmr/platform/log.hpp>
+
+namespace llmr {
+
+class NSLogBackend : public LogBackend {
+public:
+ inline ~NSLogBackend() = default;
+
+ void record(EventSeverity severity, Event event, const std::string &msg);
+ void record(EventSeverity severity, Event event, int64_t code);
+ void record(EventSeverity severity, Event event, int64_t code, const std::string &msg);
+};
+
+
+}
+
+#endif