log.info()传入多个参数的方法

这里写图片描述

不知道项目里用的是啥 ** 版本的 log4j

居然不能传入变长参数

这里写图片描述

logger.info(String.format("%s %s %s", username, feature, "1111"));

只好采用这种方式啦

原文地址:https://blog.csdn.net/HeatDeath/article/details/80170008
原文地址:https://www.cnblogs.com/jpfss/p/11555144.html