build logger.