diff options
author | Kai Köhne <kai.koehne@qt.io> | 2021-05-19 15:23:08 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2021-05-27 14:28:17 +0200 |
commit | 029425478aed1454ec3f374af0284371d050ca68 (patch) | |
tree | f2e669d9f27a890e2965c4a12b48504ecf94bd62 /src/corelib/io/qloggingcategory.cpp | |
parent | a3c430f390b379d874916d4c9ff02af5323af1bd (diff) |
Clarify that QLoggingCategory works independent of compiler build type
Also mention exception for internal categories starting with 'qt.'
Fixes: QTBUG-93852
Change-Id: Iff8657a31074ee70cba25f6acdccb5ba4b1d3b01
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qloggingcategory.cpp')
-rw-r--r-- | src/corelib/io/qloggingcategory.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/io/qloggingcategory.cpp b/src/corelib/io/qloggingcategory.cpp index ac633f1885..9d08a2cdac 100644 --- a/src/corelib/io/qloggingcategory.cpp +++ b/src/corelib/io/qloggingcategory.cpp @@ -124,7 +124,14 @@ static void setBoolLane(QBasicAtomicInt *atomic, bool enable, int shift) logs messages of type \c QtWarningMsg, \c QtCriticalMsg, \c QtFatalMsg, but ignores messages of type \c QtDebugMsg and \c QtInfoMsg. - If no argument is passed, all messages are logged. + If no argument is passed, all messages are logged. Only Qt internal categories + which start with \c{qt} are handled differently: For these, only messages of type + \c QtInfoMsg, \c QtWarningMsg, and \c QtCriticalMsg are logged by default. + + \note Logging categories are not affected by your C++ build configuration. + That is, whether messages are printed does not change depending on whether + the code is compiled with debug symbols ('Debug Build'), optimizations + ('Release Build'), or some other combination. \section1 Configuring Categories |