summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2015-03-09 16:15:18 +0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-03-12 13:28:41 +0200
commit51bc265db341f1d98b4fd46be80241771f854eb5 (patch)
treedc77abcdc9b423b59da94d32ae2afb0f57fb6f8d /platform/darwin
parent2948e7d121343359b817d2fb0eb383e257ab84c8 (diff)
downloadqtlocation-mapboxgl-51bc265db341f1d98b4fd46be80241771f854eb5.tar.gz
Make the logging system static
No initialization is needed anymore and we can use the logging functions safely at any point of the code (threading is not handled though, so you might get multiplexed messages if you log from two threads simultaneously).
Diffstat (limited to 'platform/darwin')
-rw-r--r--platform/darwin/log_nslog.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/log_nslog.mm b/platform/darwin/log_nslog.mm
index edcf41ebb2..5d53ed812f 100644
--- a/platform/darwin/log_nslog.mm
+++ b/platform/darwin/log_nslog.mm
@@ -1,11 +1,11 @@
-#include <mbgl/platform/darwin/log_nslog.hpp>
+#include <mbgl/platform/log.hpp>
#import <Foundation/Foundation.h>
namespace mbgl {
-void NSLogBackend::record(EventSeverity severity, Event event, int64_t code,
- const std::string &msg) {
+void Log::platformRecord(EventSeverity severity, Event event, int64_t code,
+ const std::string &msg) {
NSString *message =
[[NSString alloc] initWithBytes:msg.data() length:msg.size() encoding:NSUTF8StringEncoding];
NSLog(@"[%s] %s: (%lld) %@", EventSeverityClass(severity).c_str(), EventClass(event).c_str(),