Java logging fixes