14 lines
362 B
Plaintext
14 lines
362 B
Plaintext
#include <mbgl/platform/log.hpp>
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
namespace mbgl {
|
|
|
|
void Log::platformRecord(EventSeverity severity, const std::string &msg) {
|
|
NSString *message =
|
|
[[NSString alloc] initWithBytes:msg.data() length:msg.size() encoding:NSUTF8StringEncoding];
|
|
NSLog(@"[%s] %@", EventSeverityClass(severity).c_str(), message);
|
|
}
|
|
|
|
}
|