summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qloggingcategory.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-02-28 17:14:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-13 13:26:38 +0100
commit490298e93901eac0eba8c1156e9f9d6f2ccb6b11 (patch)
tree695ef98ff884127f9124b4d847aed1efc7587bd8 /src/corelib/io/qloggingcategory.cpp
parent19693362e7b345d417554c6497e5117f2b189be5 (diff)
Optionally print from where logging rules are loaded
Tell the user from where logging configurations are loaded from if the QT_LOGGING_DEBUG environment variable is set. This allows 'debugging' of the logging rules database, because it's very simple to e.g. silence all debug messages by adding a logging configuration file somewhere, and forget about it. Change-Id: Iee34031d531462060b5603e2210e01fd40952c63 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qloggingcategory.cpp')
-rw-r--r--src/corelib/io/qloggingcategory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/io/qloggingcategory.cpp b/src/corelib/io/qloggingcategory.cpp
index eb8aeaca50..7104dcdc93 100644
--- a/src/corelib/io/qloggingcategory.cpp
+++ b/src/corelib/io/qloggingcategory.cpp
@@ -137,6 +137,9 @@ Q_GLOBAL_STATIC_WITH_ARGS(QLoggingCategory, qtDefaultCategory,
QCoreApplication::applicationDirPath() + \c "/data"
\endlist
+ Set the \c QT_LOGGING_DEBUG environment variable to see from where
+ logging rules are loaded.
+
\section2 Installing a Custom Filter
As a lower-level alternative to the text rules you can also implement a