JNIEXPORT jstring JNICALL Java_ch_unibas_ccn_1lite_1android_CcnLiteAndroid_relayMinus(JNIEnv* env, jobject thiz) { if (debug_level > 0) debug_level--; return (*env)->NewStringUTF(env, lvl2str(debug_level)); }
void Logger::log(LogLvl lvl, const std::string& s) const{ if (lvl >= minLogLvl && enabled){ std::string logText = "[" + current_time() + "][" + lvl2str(lvl) + "] (" + owner + ") - " + s + "\n"; std::cout << logText << std::flush; } }