diff --git a/src/misc/Log.cpp b/src/misc/Log.cpp index 94c0e4b..7e938be 100644 --- a/src/misc/Log.cpp +++ b/src/misc/Log.cpp @@ -9,7 +9,7 @@ namespace td { namespace utils { -void LOG(const std::string& msg){ +void LOG(const std::string& msg) { #ifdef __ANDROID__ __android_log_print(ANDROID_LOG_INFO, "TRACKERS", "%s", msg.c_str()); #else @@ -17,5 +17,13 @@ void LOG(const std::string& msg){ #endif } +void LOGE(const std::string& err) { +#ifdef __ANDROID__ + __android_log_print(ANDROID_LOG_ERROR, "TRACKERS", "%s", err.c_str()); +#else + std::cerr << err << "\n"; +#endif +} + } } // namespace td