QInstallMessageHandler to send messeges also to normal debug stream
-
Hi,
I want to use qInstallMessageHandler to capture the debug messeges and save them to a file, but I also want them to be printed at the debug stream. is it possible? -
Hi,
Yes it is, just do both in your custom handler
-
how? to call qDebug inside the handler?
-
Did you see the "example code for message handler?":http://qt-project.org/doc/qt-4.8/qtglobal.html#qInstallMsgHandler
You can use this and add some additional output to file or whatever you want.