Added logger for Java.