android/runtime/v8/src/native/modules/APIModule.cpp
static void debugLog(int logLevel, const char* message)
{
	JNIEnv* env = JNIScope::getEnv();
	if (env == NULL) {
		LOGE(LCAT, "Failed to get JNI environment.");
		return;
	}

	jstring javaMessage = env->NewStringUTF(message);
	env->CallStaticVoidMethod(JNIUtil::krollLoggingClass,
	                          JNIUtil::krollLoggingLogWithDefaultLoggerMethod,
	                          logLevel,
	                          javaMessage);
	env->DeleteLocalRef(javaMessage);
}
// Seems to be for internal use only, should be OK.
Seems to be for internal use only, should be OK.
Seems to be for internal use only should be OK .
static void debugLog(int logLevel, const char* message)
{
	JNIEnv* env = JNIScope::getEnv();
	if (env == NULL) {
		LOGE(LCAT, "Failed to get JNI environment.");
		return;
	}
	jstring javaMessage = env->NewStringUTF(message);
	env->CallStaticVoidMethod(JNIUtil::krollLoggingClass,
	                          JNIUtil::krollLoggingLogWithDefaultLoggerMethod,
	                          logLevel,
	                          javaMessage);
	env->DeleteLocalRef(javaMessage);
}
static void debugLog ( int logLevel , const char * message ) { JNIEnv * env = JNIScope :: getEnv ( ) ; if ( env == NULL ) { LOGE ( LCAT , " " ) ; return ; } jstring javaMessage = env -> NewStringUTF ( message ) ; env -> CallStaticVoidMethod ( JNIUtil :: krollLoggingClass , JNIUtil :: krollLoggingLogWithDefaultLoggerMethod , logLevel , javaMessage ) ; env -> DeleteLocalRef ( javaMessage ) ; }
Seems to be for internal use only, should be OK.
Seems to be for internal use only should be OK .