From 1f9de90b4ec58526aaa89bf445e958dc2e5c9187 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 21 Jul 2014 16:46:55 +0200 Subject: [PATCH] Add example qtlogging.conf file to QLoggingCategory documentation Change-Id: I0ceeb8afa711cc7bc1378287b0d550871e5bfd9d Reviewed-by: Oswald Buddenhagen Reviewed-by: hjk --- src/corelib/io/qloggingcategory.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/corelib/io/qloggingcategory.cpp b/src/corelib/io/qloggingcategory.cpp index cc24b73a60..92ac9d925f 100644 --- a/src/corelib/io/qloggingcategory.cpp +++ b/src/corelib/io/qloggingcategory.cpp @@ -131,7 +131,13 @@ static void setBoolLane(QBasicAtomicInt *atomic, bool enable, int shift) are automatically loaded from the \c [Rules] section of a logging configuration file. Such configuration files are looked up in the QtProject configuration directory, or explicitly set in a \c QT_LOGGING_CONF - environment variable. + environment variable: + + \code + [Rules] + *.debug=false + driver.usb.debug=true + \endcode Rules set by \l setFilterRules() take precedence over rules specified in the QtProject configuration directory, and can, in turn, be