Replace sys.out.print by logger