set logger.