[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
Wed Aug 6 07:08:12 CEST 2014


On Thursday 10 July 2014 10:22:14 Thiago Macieira wrote:
> 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.

There was no other support for this suggestion, so I'm not taking it forward.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list