Where is located the qDebug qWarning qCritical and qFatal log by default on Qt?

后端 未结 4 1842
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 00:28

When running my Qt5 application on linux, I don\'t see any output from qDebug, qWarning, qCritical or qFatal. I know that I can use qInstallMsgHandler to instal

4条回答
  •  不思量自难忘°
    2020-12-10 01:01

    If you happen to run Arch Linux, which compiles Qt with the -journald option, all debug output is per default directed to the systemd journal (display with journalctl).

    You can override this behaviour by defining QT_LOGGING_TO_CONSOLE=1 as an environment variable.

提交回复
热议问题