Finish android log backend
This commit is contained in:
24
include/mbgl/platform/android/log_android.hpp
Normal file
24
include/mbgl/platform/android/log_android.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef MBGL_PLATFORM_ANDROID_LOG_ANDROID
|
||||
#define MBGL_PLATFORM_ANDROID_LOG_ANDROID
|
||||
|
||||
#include <mbgl/platform/log.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
class AndroidLogBackend : public LogBackend {
|
||||
private:
|
||||
int severity_to_priority(EventSeverity severity);
|
||||
|
||||
public:
|
||||
inline ~AndroidLogBackend() = 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
|
||||
Reference in New Issue
Block a user