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

References initFrom(), and populateBacktrace().

+ Here is the call graph for this function:

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

References backtrace, QMessageLogContext::CurrentVersion, and QMessageLogContext::version.

Referenced by QInternalMessageLogContext().

+ Here is the caller graph for this function:

◆ populateBacktrace()

void QInternalMessageLogContext::populateBacktrace ( int frameCount)

Definition at line 1703 of file qlogging.cpp.

Referenced by QInternalMessageLogContext().

+ Here is the caller graph for this function:

Member Data Documentation

◆ backtrace

std::optional<BacktraceStorage> QInternalMessageLogContext::backtrace

Definition at line 57 of file qlogging_p.h.

Referenced by initFrom().

◆ DefaultBacktraceDepth

constexpr 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: