use common logging routine and provide JNI stub