程序人生

实现Qt日志输出到文件

Qt提供了qInstallMsgHandler 方法用来定制消息发生后如何来处理。qInstallMsgHandler 是一个回调函数,主要是由qDebug、qWarnn...