开发人员应该知道何时将潜在的恶意数据(用户输入)传递给Logger,并手动转义不可信数据: logger.info("User-input:#{input.dump}")logger.info("User-input