한국어
Qt

Logging Rule 지정 

– [Rules] section of QtProject/qtlogging.ini (Qt 5.3)

[Rules]

default=true

 

– QLoggingCategory::setFilterRules(const QString &rules)

 

 

 QLoggingCategory::setFilterRules("qt.scenegraph.time.renderer=true");

 

– [Rules] section of file set in QT_LOGGING_CONF (Qt 5.3)

 

 

 qputenv("QT_LOGGING_CONF","C:/Project/test_config.ini");

 

– QT_LOGGING_RULES environment variable (Qt 5.3)

 

 

 qputenv("QT_LOGGING_RULES", "[Rules]nqt.scenegraph*=true");