Using the logger instand of System.out.print