replace system.out by logger