[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:09:56 CEST 2014
On Wednesday 09 July 2014 16:15:16 Thiago Macieira wrote:
> Heuristically determine at runtime. On all platforms (including Windows),
> use only the fact that a terminal is present. If a terminal is present,
> write to it using stderr. Otherwise, write to the system log.
This proposal is now implemented in https://codereview.qt-project.org/89357.
Since this thread ended without a counter-proposal, this is an implicit
approval on my proposal. The only proposal was an addition: to have an
application-wide flag so that the application could decide where to send the
data, but there was no strong support for it.
> * Implications for unit tests:
> Except for the unit tests testing logging to the system log in the first
> place, QT_LOGGING_TO_CONSOLE=1 should be set. I think QtTest itself should
> do that.
This is in https://codereview.qt-project.org/91336.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list