Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
\inmodule QtCore More...
#include <qlogging.h>
Public Member Functions | |
constexpr | QMessageLogContext () noexcept=default |
constexpr | QMessageLogContext (const char *fileName, int lineNumber, const char *functionName, const char *categoryName) noexcept |
Public Attributes | |
int | version = CurrentVersion |
int | line = 0 |
const char * | file = nullptr |
const char * | function = nullptr |
const char * | category = nullptr |
Static Public Attributes | |
static constexpr int | CurrentVersion = 2 |
Friends | |
class | QInternalMessageLogContext |
class | QMessageLogger |
\inmodule QtCore
The QMessageLogContext class provides additional information about a log message.
The class provides information about the source code location a qDebug(), qInfo(), qWarning(), qCritical() or qFatal() message was generated.
QT_MESSAGELOGCONTEXT
or
{QT_NO_MESSAGELOGCONTEXT}.Definition at line 41 of file qlogging.h.
|
constexprdefaultnoexcept |
Constructs a QMessageLogContext
|
inlineconstexprnoexcept |
Constructs a QMessageLogContext with for file fileName at line lineNumber, in function functionName, and category categoryName.
Definition at line 47 of file qlogging.h.
|
friend |
Definition at line 59 of file qlogging.h.
|
friend |
Definition at line 60 of file qlogging.h.
const char* QMessageLogContext::category = nullptr |
Definition at line 54 of file qlogging.h.
Referenced by QInternalMessageLogContext::QInternalMessageLogContext(), QMessageLogger::critical(), QMessageLogger::debug(), QMessageLogger::fatal(), QMessageLogger::info(), QDebugMessageServiceImpl::sendDebugMessage(), and QMessageLogger::warning().
|
staticconstexpr |
Definition at line 45 of file qlogging.h.
Referenced by QInternalMessageLogContext::initFrom().
const char* QMessageLogContext::file = nullptr |
Definition at line 52 of file qlogging.h.
Referenced by QDebugMessageServiceImpl::sendDebugMessage().
const char* QMessageLogContext::function = nullptr |
Definition at line 53 of file qlogging.h.
Referenced by QDebugMessageServiceImpl::sendDebugMessage().
int QMessageLogContext::line = 0 |
Definition at line 51 of file qlogging.h.
Referenced by QDebugMessageServiceImpl::sendDebugMessage().
int QMessageLogContext::version = CurrentVersion |
Definition at line 50 of file qlogging.h.
Referenced by QInternalMessageLogContext::initFrom().