replace systtem.out with logger