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>.
|
#include <qlogging_p.h>
Public Types | |
using | BacktraceStorage = bool |
Public Member Functions | |
Q_ALWAYS_INLINE | QInternalMessageLogContext (const QMessageLogContext &logContext) |
QInternalMessageLogContext (const QMessageLogContext &logContext, const QLoggingCategory &categoryOverride) | |
int | initFrom (const QMessageLogContext &logContext) |
void | populateBacktrace (int frameCount) |
Public Member Functions inherited from QMessageLogContext | |
constexpr | QMessageLogContext () noexcept=default |
constexpr | QMessageLogContext (const char *fileName, int lineNumber, const char *functionName, const char *categoryName) noexcept |
Public Attributes | |
std::optional< BacktraceStorage > | backtrace |
Public Attributes inherited from QMessageLogContext | |
int | version = CurrentVersion |
int | line = 0 |
const char * | file = nullptr |
const char * | function = nullptr |
const char * | category = nullptr |
Static Public Attributes | |
static constexpr int | DefaultBacktraceDepth = 32 |
Static Public Attributes inherited from QMessageLogContext | |
static constexpr int | CurrentVersion = 2 |
Definition at line 44 of file qlogging_p.h.
using QInternalMessageLogContext::BacktraceStorage = bool |
Definition at line 54 of file qlogging_p.h.
|
inline |
Definition at line 59 of file qlogging_p.h.
References initFrom(), and populateBacktrace().
|
inline |
Definition at line 65 of file qlogging_p.h.
References QMessageLogContext::category.
int QInternalMessageLogContext::initFrom | ( | const QMessageLogContext & | logContext | ) |
Copies context information from logContext into this QMessageLogContext. Returns the number of backtrace frames that are desired.
Definition at line 2348 of file qlogging.cpp.
References backtrace, QMessageLogContext::CurrentVersion, and QMessageLogContext::version.
Referenced by QInternalMessageLogContext().
void QInternalMessageLogContext::populateBacktrace | ( | int | frameCount | ) |
Definition at line 1703 of file qlogging.cpp.
Referenced by QInternalMessageLogContext().
std::optional<BacktraceStorage> QInternalMessageLogContext::backtrace |
Definition at line 57 of file qlogging_p.h.
Referenced by initFrom().
|
staticconstexpr |
Definition at line 47 of file qlogging_p.h.