我在使用log4qt输出的时候,只能使用这样的形式logger->debug("test");
不知道是否可以像printf("test%s", "test")这样输出,更加方便一点
看了logger的定义,好像没有重载不定参数的debug函数
------解决方案--------------------
- C/C++ code
logger->debug(QObject::tr("test%1").arg(test));
logger->debug(QObject::tr("test%1").arg(test));