#define infoPrint(format,...)\do \{\log4cxx::PropertyConfigurator::configure("E:\htyx\Debug\testor\log4cxx.properties");\log4cxx::LoggerPtr infoLogger = (log4cxx::Logger::getLogger("info"));\va_list args;\va_start(args,format);\CHAR szBuffer[1024];\vsprintf(szBuffer,format,args);\va_end(args);\infoLogger->info(szBuffer);\} while(0)
添加回答
举报
0/150
提交
取消