Replace println with logger.