[Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357

Thiago Macieira thiago.macieira at intel.com
Thu Jul 10 19:22:14 CEST 2014


On Thursday 10 July 2014 07:56:28 Koehne Kai wrote:
> Provide a define QT_LOG_TO_CONSOLE  that let QCoreApplication.h record
> whether it should log to console (QT_LOG_TO_CONSOLE=1), to the system
> (QT_LOG_TO_CONSOLE=0), or both (QT_LOG_TO_CONSOLE=2). 
> 
> Qmake can wrap this into convenience CONFIG arguments:
> 
> CONFIG+=log_to_console log_to_system

It's easier to set an AA flag.

http://qt-project.org/doc/qt-5/qcoreapplication.html#setAttribute
http://qt-project.org/doc/qt-5/qt.html#ApplicationAttribute-enum

PS: doc team, the second link above is unreadable.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list