JNI calls for log