Using log4j instead of System.out.println