Extract overview page for QtLogging header from QtGlobal docs
Task-number: QTBUG-106154 Change-Id: I7a60225bc8d848f52c3f51f8f4d0a360cb4ea744 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
d5395219b9
commit
bee606b091
@ -129,6 +129,36 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
using namespace Qt::StringLiterals;
|
using namespace Qt::StringLiterals;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\headerfile <QtLogging>
|
||||||
|
\inmodule QtCore
|
||||||
|
\title Qt Logging Types
|
||||||
|
|
||||||
|
\brief The <QtLogging> header file defines Qt logging types, functions
|
||||||
|
and macros.
|
||||||
|
|
||||||
|
The <QtLogging> header file contains several types, functions and
|
||||||
|
macros for logging.
|
||||||
|
|
||||||
|
The QtMsgType enum identifies the various messages that can be generated
|
||||||
|
and sent to a Qt message handler; QtMessageHandler is a type definition for
|
||||||
|
a pointer to a function with the signature
|
||||||
|
\c {void myMessageHandler(QtMsgType, const QMessageLogContext &, const char *)}.
|
||||||
|
qInstallMessageHandler() function can be used to install the given
|
||||||
|
QtMessageHandler. QMessageLogContext class contains the line, file, and
|
||||||
|
function the message was logged at. This information is created by the
|
||||||
|
QMessageLogger class.
|
||||||
|
|
||||||
|
<QtLogging> also contains functions that generate messages from the
|
||||||
|
given string argument: qDebug(), qInfo(), qWarning(), qCritical(),
|
||||||
|
and qFatal(). These functions call the message handler
|
||||||
|
with the given message.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
\snippet code/src_corelib_global_qglobal.cpp 4
|
||||||
|
*/
|
||||||
|
|
||||||
#if !defined(Q_CC_MSVC)
|
#if !defined(Q_CC_MSVC)
|
||||||
Q_NORETURN
|
Q_NORETURN
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user