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).
12 lines
276 B
C++
12 lines
276 B
C++
#include <mbgl/platform/log.hpp>
|
|
|
|
#include <iostream>
|
|
|
|
namespace mbgl {
|
|
|
|
void Log::platformRecord(EventSeverity severity, Event event, int64_t code, const std::string &msg) {
|
|
std::cerr << "[" << severity << "] " << event << ": (" << code << ") " << msg << std::endl;
|
|
}
|
|
|
|
}
|