Use java logger instead of System.out.println.