qt5base-lts/tests/auto/corelib/io
Giuseppe D'Angelo eb63f2eb05 QMessageLogger: make qFatal categorized and streamable
There is no technical reason why qFatal shouldn't support categorized
logging, nor have a streaming version.

There is perhaps an API issue, that is, a streaming syntax may encourage
users to do "too much":

  qFatal() << gatherLogs() << saveDatabase() << ...;

and that sounds like a bad idea in case the application is in an
unrecoverable state that requires immedate terminatation (indeed,
through qFatal). I'd err on the side of providing the extra convenience.

This commits adds overloads of QMessageLogger::fatal to support
categorized logging (note that fatal messages cannot be disabled),
the relative qCFatal macro, as well as overloads for streaming.

[ChangeLog][QtCore][QMessageLogger] QMessageLogger::fatal now supports
categorized logging, for instance using the qCFatal(category) macro.
Moreover, qFatal() and qCFatal() now support streaming of values
to be printed in the fatal message.

Change-Id: Ia57f25f5c85fca97e5fcf27eaa760dbde09cba0e
Fixes: QTBUG-8298
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-12-05 04:15:39 +01:00
..
largefile Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qabstractfileengine Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qbuffer Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qdataurl Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qdebug Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qdir Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qdiriterator Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qfile tst_QFile: remove unused variable on Windows 2022-10-25 18:33:14 -07:00
qfileinfo QFileInfo: add unittest for setFileTime() 2022-11-01 21:33:15 +02:00
qfileselector Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qfilesystementry Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qfilesystemmetadata Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qfilesystemwatcher Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qiodevice Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qipaddress Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qlockfile Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qloggingcategory QMessageLogger: make qFatal categorized and streamable 2022-12-05 04:15:39 +01:00
qloggingregistry Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qnodebug Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qprocess Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qprocess-noapplication Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qprocessenvironment Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qresourceengine tst_QResourceEngine::checkStructure(): fix name of some data rows 2022-10-11 11:23:04 +02:00
qsavefile Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qsettings Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qstandardpaths Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qstorageinfo Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qtemporarydir Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qtemporaryfile Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qurl Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qurlinternal Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qurlquery tst_QUrlQuery: remove duplicate of reconstructQuery data row 2022-10-11 11:22:31 +02:00
qurluts46 Update UCD to Revision 30 2022-10-11 14:10:59 +00:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00