Logger
This commit is contained in:
@ -32,7 +32,7 @@ namespace ia
|
||||
StringStream ss;
|
||||
UNUSED((ss << ... << args));
|
||||
#ifdef __ANDROID__
|
||||
__android_log_print(ANDROID_LOG_DEBUG, "IAApp", ss.str().c_str());
|
||||
__android_log_print(ANDROID_LOG_DEBUG, "IAApp", "%s", ss.str().c_str());
|
||||
#else
|
||||
printf("\033[0;37m[INFO]: [%s] %s\033[39m\n", tag, ss.str().c_str());
|
||||
#endif
|
||||
@ -43,7 +43,7 @@ namespace ia
|
||||
StringStream ss;
|
||||
UNUSED((ss << ... << args));
|
||||
#ifdef __ANDROID__
|
||||
__android_log_print(ANDROID_LOG_INFO, "IAApp", ss.str().c_str());
|
||||
__android_log_print(ANDROID_LOG_INFO, "IAApp", "%s", ss.str().c_str());
|
||||
#else
|
||||
printf("\033[32m[SUCCESS]: [%s] %s\033[39m\n", tag, ss.str().c_str());
|
||||
#endif
|
||||
@ -54,7 +54,7 @@ namespace ia
|
||||
StringStream ss;
|
||||
UNUSED((ss << ... << args));
|
||||
#ifdef __ANDROID__
|
||||
__android_log_print(ANDROID_LOG_DEBUG, "IAApp", ss.str().c_str());
|
||||
__android_log_print(ANDROID_LOG_DEBUG, "IAApp", "%s", ss.str().c_str());
|
||||
#else
|
||||
printf("\033[33m[WARN]: [%s] %s\033[39m\n", tag, ss.str().c_str());
|
||||
#endif
|
||||
@ -65,7 +65,7 @@ namespace ia
|
||||
StringStream ss;
|
||||
UNUSED((ss << ... << args));
|
||||
#ifdef __ANDROID__
|
||||
__android_log_print(ANDROID_LOG_ERROR, "IAApp", ss.str().c_str());
|
||||
__android_log_print(ANDROID_LOG_ERROR, "IAApp", "%s", ss.str().c_str());
|
||||
#else
|
||||
printf("\033[31m[ERROR]: [%s] %s\033[39m\n", tag, ss.str().c_str());
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user