qt5base-lts/tests/auto/corelib/global/qlogging
Olivier Goffart 123ce761c0 QT_MESSAGE_OUTPUT: add support for condition depending on the type
The motivation is to enable coloration the way KDE currently does.
It can now  be achieved with a QT_MESSAGE_OUTPUT set to
"%{appname}(%{category}) \033[31m%{if-debug}\033[34m%{endif}%{function}\033[0m: %{message}"

I was thinking about supporting directly color using something like
%{begin-category-color} that would be smart and detect if we are running
on a terminal, but it would be less flexible in the way the colors van
be configured.

Changelog: QT_MESSAGE_OUTPUT can contain conditionals based on the type
of the message

Change-Id: Icd8de04734a94a3afcbf542a5b78b290a1914960
Reviewed-by: David Faure (KDE) <faure@kde.org>
2013-02-27 22:29:43 +01:00
..
app Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qlogging.pro Fixed tst_qlogging app silently not compiled in some -fast builds. 2012-02-22 04:48:36 +01:00
tst_qlogging.cpp QT_MESSAGE_OUTPUT: add support for condition depending on the type 2013-02-27 22:29:43 +01:00