Adding logging to JNI lib