Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/qtclasshelpermacros.h>
#include <QtCore/qtconfigmacros.h>
#include <QtCore/qtcoreexports.h>
#include <QtCore/qcontainerfwd.h>
Go to the source code of this file.
Classes | |
class | QMessageLogContext |
\inmodule QtCore More... | |
class | QMessageLogger |
\inmodule QtCore More... | |
Macros | |
#define | QT_MESSAGE_LOGGER_NORETURN Q_NORETURN |
#define | QT_MESSAGELOGCONTEXT |
#define | QT_MESSAGELOG_FILE static_cast<const char *>(__FILE__) |
#define | QT_MESSAGELOG_LINE __LINE__ |
#define | QT_MESSAGELOG_FUNC static_cast<const char *>(Q_FUNC_INFO) |
#define | qDebug QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).debug |
[1] | |
#define | qInfo QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).info |
#define | qWarning QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).warning |
#define | qCritical QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).critical |
#define | qFatal QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).fatal |
#define | QT_NO_QDEBUG_MACRO while (false) QMessageLogger().noDebug |
Typedefs | |
typedef void(* | QtMessageHandler) (QtMsgType, const QMessageLogContext &, const QString &) |
Enumerations | |
enum | QtMsgType { QtDebugMsg , QtWarningMsg , QtCriticalMsg , QtFatalMsg } |
Functions | |
Q_CORE_EXPORT void | qt_message_output (QtMsgType, const QMessageLogContext &context, const QString &message) |
Q_CORE_EXPORT Q_DECL_COLD_FUNCTION void | qErrnoWarning (int code, const char *msg,...) |
Q_CORE_EXPORT Q_DECL_COLD_FUNCTION void | qErrnoWarning (const char *msg,...) |
Q_CORE_EXPORT QtMessageHandler | qInstallMessageHandler (QtMessageHandler) |
Q_CORE_EXPORT void | qSetMessagePattern (const QString &messagePattern) |
Q_CORE_EXPORT QString | qFormatLogMessage (QtMsgType type, const QMessageLogContext &context, const QString &buf) |
Q_DECL_COLD_FUNCTION Q_CORE_EXPORT QString | qt_error_string (int errorCode=-1) |
#define qCritical QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).critical |
Definition at line 168 of file qlogging.h.
[1]
[7]
[15]
[11]
[toString]
[12] [13] [14]
[16] [16] [17]
[8]
Definition at line 165 of file qlogging.h.
#define qFatal QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).fatal |
Definition at line 169 of file qlogging.h.
#define qInfo QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).info |
Definition at line 166 of file qlogging.h.
#define QT_MESSAGE_LOGGER_NORETURN Q_NORETURN |
Definition at line 69 of file qlogging.h.
#define QT_MESSAGELOG_FILE static_cast<const char *>(__FILE__) |
Definition at line 156 of file qlogging.h.
#define QT_MESSAGELOG_FUNC static_cast<const char *>(Q_FUNC_INFO) |
Definition at line 158 of file qlogging.h.
#define QT_MESSAGELOG_LINE __LINE__ |
Definition at line 157 of file qlogging.h.
#define QT_MESSAGELOGCONTEXT |
Definition at line 151 of file qlogging.h.
#define QT_NO_QDEBUG_MACRO while (false) QMessageLogger().noDebug |
Definition at line 171 of file qlogging.h.
#define qWarning QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).warning |
Definition at line 167 of file qlogging.h.
typedef void(* QtMessageHandler) (QtMsgType, const QMessageLogContext &, const QString &) |
Definition at line 192 of file qlogging.h.
enum QtMsgType |
Enumerator | |
---|---|
QtDebugMsg | |
QtWarningMsg | |
QtCriticalMsg | |
QtFatalMsg |
Definition at line 29 of file qlogging.h.
Q_CORE_EXPORT Q_DECL_COLD_FUNCTION void qErrnoWarning | ( | const char * | msg, |
... ) |
Definition at line 2130 of file qlogging.cpp.
Q_CORE_EXPORT Q_DECL_COLD_FUNCTION void qErrnoWarning | ( | int | code, |
const char * | msg, | ||
... ) |
Definition at line 2146 of file qlogging.cpp.
Q_CORE_EXPORT QString qFormatLogMessage | ( | QtMsgType | type, |
const QMessageLogContext & | context, | ||
const QString & | buf ) |
Q_CORE_EXPORT QtMessageHandler qInstallMessageHandler | ( | QtMessageHandler | h | ) |
Definition at line 2319 of file qlogging.cpp.
Definition at line 2329 of file qlogging.cpp.
QString qt_error_string | ( | int | errorCode = -1 | ) |
Definition at line 151 of file qsystemerror.cpp.
Q_CORE_EXPORT void qt_message_output | ( | QtMsgType | msgType, |
const QMessageLogContext & | context, | ||
const QString & | message ) |
Definition at line 2122 of file qlogging.cpp.