Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] Redirecting log messages
situ117 last edited by
Is there any way to catch all console.log() messages through QML. By default all logged messages are printed on terminal. What if I want to log these messages to a file. (not by using UNIX redirection operators, consider a scenario where I'm running my app on cellphone.)
andre last edited by
Just use the standard Qt way to re-direct log messages (qInstallMsgHandler, look it up in the docs).