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
qloggingregistry.cpp File Reference

(c6a2f7a70e40a6df71342ffceb5eb897af71350c)

#include "qloggingregistry_p.h"
#include <QtCore/qfile.h>
#include <QtCore/qlibraryinfo.h>
#include <QtCore/private/qlocking_p.h>
#include <QtCore/qstandardpaths.h>
#include <QtCore/qstringtokenizer.h>
#include <QtCore/qtextstream.h>
#include <QtCore/qdir.h>
#include <QtCore/qcoreapplication.h>
+ Include dependency graph for qloggingregistry.cpp:

Go to the source code of this file.

Macros

#define debugMsg   QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC, "qt.core.logging").debug
 
#define warnMsg   QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC, "qt.core.logging").warning
 

Functions

static bool qtLoggingDebug ()
 
static QList< QLoggingRuleloadRulesFromFile (const QString &filePath)
 

Macro Definition Documentation

◆ debugMsg

◆ warnMsg

Definition at line 23 of file qloggingregistry.cpp.

Function Documentation

◆ loadRulesFromFile()

static QList< QLoggingRule > loadRulesFromFile ( const QString & filePath)
static

Definition at line 253 of file qloggingregistry.cpp.

References debugMsg, file, QFile::open(), qtLoggingDebug(), QIODeviceBase::ReadOnly, QLoggingSettingsParser::rules(), QLoggingSettingsParser::setContent(), QList< T >::size(), QIODeviceBase::Text, and QDir::toNativeSeparators().

Referenced by QLoggingRegistry::initializeRules().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qtLoggingDebug()

static bool qtLoggingDebug ( )
static

Definition at line 242 of file qloggingregistry.cpp.

References debug, debugMsg, and qEnvironmentVariableIsSet().

Referenced by QLoggingRegistry::initializeRules(), loadRulesFromFile(), and QLoggingRegistry::setApiRules().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: