Details
Description
When you use a configuration file for your logging rules and read/write this file with QSettings, you're not able to save an asterisk. The asterisk will be encoded to %2A and saved. So the whished logging rule won't be applied.
QSettings settings("config.ini", QSettings::IniFormat); settings.beginGroup("Rules"); settings.setValue("module.*", false); settings.endGroup();
The code above will be saved in the config.ini file as:
[Rules]
module.%2A=false
Now, If you set the QT_LOGGING_CONF environment variable to config.ini, the QLoggingCategory is not able to interpret %2A as asterisk.
So either, QSettings will save the asterisk without encoding or the parser of QLoggingCategory can interpret the encoding.
Attachments
For Gerrit Dashboard: QTBUG-69548 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
235048,9 | Logging: Accept .ini files written by QSettings | dev | qt/qtbase | Status: MERGED | +2 | 0 |