16 lines
494 B
Plaintext
16 lines
494 B
Plaintext
#include <mbgl/util/enum.hpp>
|
|
#include <mbgl/util/logging.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] %@", Enum<EventSeverity>::toString(severity), message);
|
|
}
|
|
|
|
} // namespace mbgl
|