summaryrefslogtreecommitdiff
path: root/common/nslog_log.hpp
blob: d40f9630360cbd08e9dad99a87bfc6d71d9d1452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef MBGL_COMMON_NSLOG_LOG
#define MBGL_COMMON_NSLOG_LOG

#include <mbgl/platform/log.hpp>

namespace mbgl {

class NSLogBackend : public LogBackend {
public:
    inline ~NSLogBackend() = default;

    void record(EventSeverity severity, Event event, const std::string &msg);
    void record(EventSeverity severity, Event event, const char* format, ...);
    void record(EventSeverity severity, Event event, int64_t code);
    void record(EventSeverity severity, Event event, int64_t code, const std::string &msg);
};


}

#endif