summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qloggingregistry.cpp
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku@ptp.co.jp>2015-07-10 14:56:00 +0900
committerTasuku Suzuki (PTP) <tasuku@ptp.co.jp>2015-07-16 13:04:40 +0000
commit8f814e8cba3b52bdf3fff933e9dc5db5c97b30e8 (patch)
tree8fc782f8a8c0d474a26071089746a4bb4fccf158 /src/corelib/io/qloggingregistry.cpp
parent287971eb7f64d53a592d0c81d1776e84ade6208b (diff)
QT_LOGGING_RULES supports multiple rules separated by semicolons
[ChangeLog][QtCore][Logging] QT_LOGGING_RULES now supports multiple rules separated by semicolons Change-Id: I7fdd62a3d719aeb16cad54f193befb6c203bc160 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/corelib/io/qloggingregistry.cpp')
-rw-r--r--src/corelib/io/qloggingregistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qloggingregistry.cpp b/src/corelib/io/qloggingregistry.cpp
index 7f2ce319ee..85e73db652 100644
--- a/src/corelib/io/qloggingregistry.cpp
+++ b/src/corelib/io/qloggingregistry.cpp
@@ -265,7 +265,7 @@ void QLoggingRegistry::init()
envRules = parser.rules();
}
}
- const QByteArray rulesSrc = qgetenv("QT_LOGGING_RULES");
+ const QByteArray rulesSrc = qgetenv("QT_LOGGING_RULES").replace(';', '\n');
if (!rulesSrc.isEmpty()) {
QTextStream stream(rulesSrc);
QLoggingSettingsParser parser;