replace all print with logger