Replaced System.out/err.println and e.printStackTrace with java.util.logging.