Replace system.out with a logger