![]() |
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 |
| #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 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 void | qt_message_output (QtMsgType, const QMessageLogContext &context, const QString &message) |
| 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 171 of file qlogging.h.
Definition at line 168 of file qlogging.h.
| #define qFatal QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).fatal |
Definition at line 172 of file qlogging.h.
| #define qInfo QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).info |
Definition at line 169 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 159 of file qlogging.h.
| #define QT_MESSAGELOG_FUNC static_cast<const char *>(Q_FUNC_INFO) |
Definition at line 161 of file qlogging.h.
| #define QT_MESSAGELOG_LINE __LINE__ |
Definition at line 160 of file qlogging.h.
| #define QT_MESSAGELOGCONTEXT |
Definition at line 154 of file qlogging.h.
| #define QT_NO_QDEBUG_MACRO while (false) QMessageLogger().noDebug |
Definition at line 177 of file qlogging.h.
| #define qWarning QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).warning |
Definition at line 170 of file qlogging.h.
| typedef void(* QtMessageHandler) (QtMsgType, const QMessageLogContext &, const QString &) |
Definition at line 196 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 2182 of file qlogging.cpp.
References QMessageLogContext::QMessageLogContext().
| Q_CORE_EXPORT Q_DECL_COLD_FUNCTION void qErrnoWarning | ( | int | code, |
| const char * | msg, | ||
| ... ) |
Definition at line 2198 of file qlogging.cpp.
References QMessageLogContext::QMessageLogContext().
| Q_CORE_EXPORT QString qFormatLogMessage | ( | QtMsgType | type, |
| const QMessageLogContext & | context, | ||
| const QString & | buf ) |
| Q_CORE_EXPORT QtMessageHandler qInstallMessageHandler | ( | QtMessageHandler | h | ) |
Definition at line 2377 of file qlogging.cpp.
References qDefaultMessageHandler().
Definition at line 2386 of file qlogging.cpp.
References QMessagePattern::mutex.
| 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 2175 of file qlogging.cpp.