Allow customization of qDebug output at runtime
authorKai Koehne <kai.koehne@nokia.com>
Fri, 3 Feb 2012 08:35:22 +0000 (09:35 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Feb 2012 17:11:21 +0000 (18:11 +0100)
commitbe98fa32c7d56ea91359b647a329356fa44eca04
tree7d3941bcfe07aebb95e74e7344c774f36eaccf17
parente7e87993042ac9a4fd899da5ea0340322b47d9ff
Allow customization of qDebug output at runtime

Check the QT_OUTPUT_PATTERN environment variable in the default
message handler to customize the output of messages. Following
place holders are right now supported:
 %{message}, %{type}, %{file}, %{line}, %{function}

The original cleanupFuncinfo was written by Thiago Macieira.

Change-Id: I6ad25baaa0e6a1c9f886105d2a93ef3310e512a9
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: David Faure <faure@kde.org>
17 files changed:
qmake/Makefile.unix
qmake/Makefile.win32
qmake/Makefile.win32-g++
qmake/Makefile.win32-g++-sh
qmake/qmake.pri
src/corelib/global/qglobal.cpp
src/corelib/global/qlogging.cpp
src/corelib/kernel/qcoreapplication_win.cpp
tests/auto/corelib/global/global.pro
tests/auto/corelib/global/qlogging/app/app.pro [new file with mode: 0644]
tests/auto/corelib/global/qlogging/app/main.cpp [new file with mode: 0644]
tests/auto/corelib/global/qlogging/qlogging.pro [new file with mode: 0644]
tests/auto/corelib/global/qlogging/tst_qlogging.cpp [new file with mode: 0644]
tests/auto/corelib/global/qlogging/tst_qlogging.pro [new file with mode: 0644]
tests/auto/corelib/global/qmessagehandler/qmessagehandler.pro [deleted file]
tests/auto/corelib/global/qmessagehandler/tst_qmessagehandler.cpp [deleted file]
tools/configure/configure.pro