在Qt项目一般采用Qt的qDebug/qInfo/qWarning来输出log,但不排除有一些用到标准输出的, 如printf/fprintf/std::cout等,标准输出不显示,多个解决办法
1、添加setbuf(stdout, NULL)
2、在输出后面添加fflush( stdout);或者fflush(stderr);
在Qt项目一般采用Qt的qDebug/qInfo/qWarning来输出log,但不排除有一些用到标准输出的, 如printf/fprintf/std::cout等,标准输出不显示,多个解决办法
1、添加setbuf(stdout, NULL)
2、在输出后面添加fflush( stdout);或者fflush(stderr);