QtBase  v6.3.1
Classes | Macros
qloggingcategory.h File Reference
#include <QtCore/qglobal.h>
#include <QtCore/qdebug.h>
Include dependency graph for qloggingcategory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QLoggingCategory
 The QLoggingCategory class represents a category, or 'area' in the logging infrastructure. More...
 

Macros

#define Q_DECLARE_LOGGING_CATEGORY(name)    extern const QLoggingCategory &name();
 
#define Q_LOGGING_CATEGORY(name, ...)
 
#define QT_MESSAGE_LOGGER_COMMON(category, level)
 
#define qCDebug(category, ...)   QT_MESSAGE_LOGGER_COMMON(category, QtDebugMsg).debug(__VA_ARGS__)
 
#define qCInfo(category, ...)   QT_MESSAGE_LOGGER_COMMON(category, QtInfoMsg).info(__VA_ARGS__)
 
#define qCWarning(category, ...)   QT_MESSAGE_LOGGER_COMMON(category, QtWarningMsg).warning(__VA_ARGS__)
 
#define qCCritical(category, ...)   QT_MESSAGE_LOGGER_COMMON(category, QtCriticalMsg).critical(__VA_ARGS__)
 

Macro Definition Documentation

◆ Q_DECLARE_LOGGING_CATEGORY

#define Q_DECLARE_LOGGING_CATEGORY (   name)     extern const QLoggingCategory &name();

Definition at line 157 of file qloggingcategory.h.

◆ Q_LOGGING_CATEGORY

#define Q_LOGGING_CATEGORY (   name,
  ... 
)
Value:
{ \
static const QLoggingCategory category(__VA_ARGS__); \
return category; \
}
The QLoggingCategory class represents a category, or 'area' in the logging infrastructure.
const QLoggingCategory & category()
[1]
GLuint name

Definition at line 160 of file qloggingcategory.h.

◆ qCCritical

#define qCCritical (   category,
  ... 
)    QT_MESSAGE_LOGGER_COMMON(category, QtCriticalMsg).critical(__VA_ARGS__)

Definition at line 174 of file qloggingcategory.h.

◆ qCDebug

#define qCDebug (   category,
  ... 
)    QT_MESSAGE_LOGGER_COMMON(category, QtDebugMsg).debug(__VA_ARGS__)

Definition at line 171 of file qloggingcategory.h.

◆ qCInfo

#define qCInfo (   category,
  ... 
)    QT_MESSAGE_LOGGER_COMMON(category, QtInfoMsg).info(__VA_ARGS__)

Definition at line 172 of file qloggingcategory.h.

◆ qCWarning

#define qCWarning (   category,
  ... 
)    QT_MESSAGE_LOGGER_COMMON(category, QtWarningMsg).warning(__VA_ARGS__)

Definition at line 173 of file qloggingcategory.h.

◆ QT_MESSAGE_LOGGER_COMMON

#define QT_MESSAGE_LOGGER_COMMON (   category,
  level 
)
Value:
for (QLoggingCategoryMacroHolder<level> qt_category(category); qt_category; qt_category.control = false) \
The QMessageLogger class generates log messages.
Definition: qlogging.h:93
#define QT_MESSAGELOG_FUNC
Definition: qlogging.h:170
#define QT_MESSAGELOG_FILE
Definition: qlogging.h:168
#define QT_MESSAGELOG_LINE
Definition: qlogging.h:169

Definition at line 167 of file qloggingcategory.h.