// I can't map LOG_ values because SLOG uses token concatenation
void error(const char *tag, const char *msg)
{
- SLOG(LOG_ERROR, tag, "%s", msg);
+ print_system_log(DLOG_ERROR, tag, "%s", msg);
}
void warning(const char *tag, const char *msg)
{
- SLOG(LOG_WARN, tag, "%s", msg);
+ print_system_log(DLOG_WARN, tag, "%s", msg);
}
void info(const char *tag, const char *msg)
{
- SLOG(LOG_INFO, tag, "%s", msg);
+ print_system_log(DLOG_INFO, tag, "%s", msg);
}
void debug(const char *tag, const char *msg)
{
- SLOG(LOG_DEBUG, tag, "%s", msg);
+ print_system_log(DLOG_DEBUG, tag, "%s", msg);
}
void pedantic(const char *tag, const char *msg)
{
- SLOG(LOG_VERBOSE, tag, "%s", msg);
+ print_system_log(DLOG_VERBOSE, tag, "%s", msg);
}
std::map<AbstractLogProvider::LogLevel, dlogMacro> dlogMacros = {
// [](const char* tag, const char* msg) { SLOG(LOG_ERROR, tag, "%s", msg); } won't compile