Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QInternalMessageLogContext Class Reference

#include <qlogging_p.h>

Inheritance diagram for QInternalMessageLogContext:
Collaboration diagram for QInternalMessageLogContext:

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< BacktraceStoragebacktrace
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

Detailed Description

Definition at line 44 of file qlogging_p.h.

Member Typedef Documentation

◆ BacktraceStorage

Definition at line 54 of file qlogging_p.h.

Constructor & Destructor Documentation

◆ QInternalMessageLogContext() [1/2]

Q_ALWAYS_INLINE QInternalMessageLogContext::QInternalMessageLogContext ( const QMessageLogContext & logContext)
inline

Definition at line 59 of file qlogging_p.h.

◆ QInternalMessageLogContext() [2/2]

QInternalMessageLogContext::QInternalMessageLogContext ( const QMessageLogContext & logContext,
const QLoggingCategory & categoryOverride )
inline

Definition at line 65 of file qlogging_p.h.

References QMessageLogContext::category.

Member Function Documentation

◆ initFrom()

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 2408 of file qlogging.cpp.

◆ populateBacktrace()

void QInternalMessageLogContext::populateBacktrace ( int frameCount)

Definition at line 1609 of file qlogging.cpp.

Member Data Documentation

◆ backtrace

std::optional<BacktraceStorage> QInternalMessageLogContext::backtrace

Definition at line 57 of file qlogging_p.h.

◆ DefaultBacktraceDepth

int QInternalMessageLogContext::DefaultBacktraceDepth = 32
staticconstexpr

Definition at line 47 of file qlogging_p.h.


The documentation for this class was generated from the following files: