![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qloggingregistry_p.h>
Public Member Functions | |
QLoggingRegistry () | |
Q_AUTOTEST_EXPORT void | initializeRules () |
void | registerCategory (QLoggingCategory *category, QtMsgType enableForLevel) |
void | unregisterCategory (QLoggingCategory *category) |
Q_CORE_EXPORT void | registerEnvironmentOverrideForCategory (const char *categoryName, const char *environment) |
void | setApiRules (const QString &content) |
QLoggingCategory::CategoryFilter | installFilter (QLoggingCategory::CategoryFilter filter) |
Static Public Member Functions | |
static Q_CORE_EXPORT QLoggingRegistry * | instance () |
static QLoggingCategory * | defaultCategory () |
Static Public Attributes | |
static constexpr const char | defaultCategoryName [] = "default" |
Friends | |
class | ::tst_QLoggingRegistry |
Definition at line 98 of file qloggingregistry_p.h.
QLoggingRegistry::QLoggingRegistry | ( | ) |
QLoggingRegistry constructor
Definition at line 259 of file qloggingregistry.cpp.
References initializeRules().
|
static |
Definition at line 488 of file qloggingregistry.cpp.
void QLoggingRegistry::initializeRules | ( | ) |
Initializes the rules database by loading $QT_LOGGING_CONF, $QT_LOGGING_RULES, and .config/QtProject/qtlogging.ini.
Definition at line 336 of file qloggingregistry.cpp.
References qtLoggingDebug().
Referenced by QLoggingRegistry().
QLoggingCategory::CategoryFilter QLoggingRegistry::installFilter | ( | QLoggingCategory::CategoryFilter | filter | ) |
Installs a custom filter rule.
Definition at line 464 of file qloggingregistry.cpp.
|
static |
Definition at line 479 of file qloggingregistry.cpp.
void QLoggingRegistry::registerCategory | ( | QLoggingCategory * | cat, |
QtMsgType | enableForLevel ) |
Registers a category object.
This method might be called concurrently for the same category object.
Definition at line 392 of file qloggingregistry.cpp.
void QLoggingRegistry::registerEnvironmentOverrideForCategory | ( | const char * | categoryName, |
const char * | environment ) |
Registers the environment variable environment as the control variable for enabling debugging by default for category categoryName. The category name must start with "qt."
Definition at line 421 of file qloggingregistry.cpp.
Installs logging rules as specified in content.
Definition at line 431 of file qloggingregistry.cpp.
void QLoggingRegistry::unregisterCategory | ( | QLoggingCategory * | cat | ) |
Unregisters a category object.
Definition at line 407 of file qloggingregistry.cpp.
|
friend |
Definition at line 146 of file qloggingregistry_p.h.
|
staticconstexpr |
Definition at line 119 of file qloggingregistry_p.h.