Replace System.out with logger