clean log in JNI