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
qohoslogger_p.h File Reference

(dc8a6de42c8adb89275628f0adb067e9664a795d)

#include <QtCore/qdebug.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/qthread.h>
#include <cstdarg>
#include <hilog/log.h>
Include dependency graph for qohoslogger_p.h:

Go to the source code of this file.

Classes

struct  QCScopedDebug< StringType >
struct  QCScopedDebugJS< StringType >

Macros

#define qOhosDebug(category)
#define qOhosWarning(category)
#define qOhosCritical(category)
#define qOhosFatal(category)
#define DUMP(x)

Functions

QT_BEGIN_NAMESPACE Q_CORE_EXPORT const QLoggingCategoryQtForOhos ()
Q_CORE_EXPORT void qOhosLogMessage (LogLevel logLevel, const char *tag, const char *message)
Q_CORE_EXPORT Q_ATTRIBUTE_FORMAT_PRINTF (2, 0) void qOhosVPrintf(LogLevel logLevel
 Q_ATTRIBUTE_FORMAT_PRINTF (1, 2) inline void qOhosPrintfDebug(const char *format
 va_start (ap, format)
 qOhosVPrintf (LOG_DEBUG, format, ap)
 va_end (ap)
 qOhosVPrintf (LOG_INFO, format, ap)
 qOhosVPrintf (LOG_WARN, format, ap)
 qOhosVPrintf (LOG_ERROR, format, ap)
template<typename StringType>
auto make_QCScopedDebug (StringType &&message) -> QCScopedDebug< typename std::decay< StringType >::type >
template<typename StringType>
auto make_QCScopedDebugJS (StringType &&message) -> QCScopedDebugJS< typename std::decay< StringType >::type >

Variables

Q_CORE_EXPORT const char * format
Q_CORE_EXPORT const char std::va_list ap

Macro Definition Documentation

◆ DUMP

#define DUMP ( x)
Value:
static Q_DECL_PURE_FUNCTION Qt::HANDLE currentThreadId() noexcept
Definition qthread.h:160
QT_BEGIN_NAMESPACE const QLoggingCategory & QtForOhos()
#define qOhosDebug(category)
GLint GLint GLint GLint GLint x

Definition at line 121 of file qohoslogger_p.h.

◆ qOhosCritical

#define qOhosCritical ( category)
Value:
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"") \
qCCritical(category) \
_Pragma("GCC diagnostic pop")
const QLoggingCategory & category()
[1]

Definition at line 40 of file qohoslogger_p.h.

◆ qOhosDebug

#define qOhosDebug ( category)
Value:
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"") \
qCDebug(category) \
_Pragma("GCC diagnostic pop")

Definition at line 28 of file qohoslogger_p.h.

◆ qOhosFatal

#define qOhosFatal ( category)
Value:
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"") \
qCFatal(category) \
_Pragma("GCC diagnostic pop")

Definition at line 46 of file qohoslogger_p.h.

◆ qOhosWarning

#define qOhosWarning ( category)
Value:
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"") \
qCWarning(category) \
_Pragma("GCC diagnostic pop")

Definition at line 34 of file qohoslogger_p.h.

Function Documentation

◆ make_QCScopedDebug()

template<typename StringType>
auto make_QCScopedDebug ( StringType && message) -> QCScopedDebug< typename std::decay< StringType >::type >

Definition at line 112 of file qohoslogger_p.h.

◆ make_QCScopedDebugJS()

template<typename StringType>
auto make_QCScopedDebugJS ( StringType && message) -> QCScopedDebugJS< typename std::decay< StringType >::type >

Definition at line 117 of file qohoslogger_p.h.

◆ Q_ATTRIBUTE_FORMAT_PRINTF() [1/2]

Q_ATTRIBUTE_FORMAT_PRINTF ( 1 ,
2  ) const

◆ Q_ATTRIBUTE_FORMAT_PRINTF() [2/2]

Q_CORE_EXPORT Q_ATTRIBUTE_FORMAT_PRINTF ( 2 ,
0  )

◆ qOhosLogMessage()

Q_CORE_EXPORT void qOhosLogMessage ( LogLevel logLevel,
const char * tag,
const char * message )

Definition at line 17 of file qohoslogger.cpp.

◆ qOhosVPrintf() [1/4]

qOhosVPrintf ( LOG_DEBUG ,
format ,
ap  )

◆ qOhosVPrintf() [2/4]

qOhosVPrintf ( LOG_ERROR ,
format ,
ap  )

◆ qOhosVPrintf() [3/4]

qOhosVPrintf ( LOG_INFO ,
format ,
ap  )

◆ qOhosVPrintf() [4/4]

qOhosVPrintf ( LOG_WARN ,
format ,
ap  )

◆ QtForOhos()

QT_BEGIN_NAMESPACE Q_CORE_EXPORT const QLoggingCategory & QtForOhos ( )

Definition at line 11 of file qohoslogger.cpp.

◆ va_end()

va_end ( ap )

◆ va_start()

va_start ( ap ,
format  )
Initial value:
{
std::va_list ap
Q_CORE_EXPORT const char std::va_list ap

Variable Documentation

◆ ap

Q_CORE_EXPORT const char std::va_list ap

Definition at line 54 of file qohoslogger_p.h.

◆ format

Q_CORE_EXPORT const char* format

Definition at line 54 of file qohoslogger_p.h.