diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-11 14:34:17 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-11 14:34:17 -0700 |
commit | 7ffe4a7858bc5d071b87612bdaa19d8eaf29045c (patch) | |
tree | 701750687b9331dcd290d9831ad8b62be9a97cae /common/nslog_log.hpp | |
parent | f3c55eba9da59042a96e683f841060674519520b (diff) | |
download | qtlocation-mapboxgl-7ffe4a7858bc5d071b87612bdaa19d8eaf29045c.tar.gz |
add nslog and stderr log backends
Diffstat (limited to 'common/nslog_log.hpp')
-rw-r--r-- | common/nslog_log.hpp | 20 |
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 |