Move the implementation of the more specialized methods to the base class and let the platform implement only the most generic method that takes all the possible arguments. These specialized methods will then map to the generic implementation that must be provided by the platforms we support.
12 lines
296 B
C++
12 lines
296 B
C++
#include <mbgl/platform/default/log_stderr.hpp>
|
|
|
|
#include <iostream>
|
|
|
|
namespace mbgl {
|
|
|
|
void StderrLogBackend::record(EventSeverity severity, Event event, int64_t code, const std::string &msg) {
|
|
std::cerr << "[" << severity << "] " << event << ": (" << code << ") " << msg << std::endl;
|
|
}
|
|
|
|
}
|