Document limitations and good practice for logging category names
Task-number: QTBUG-54238 Change-Id: I2b6f54fb26d24e6da19c0e09782483eeb10206e1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michael Brasser <michael.brasser@live.com>
This commit is contained in:
parent
f4be16e1f7
commit
3986e1cb22
@ -80,6 +80,15 @@ static void setBoolLane(QBasicAtomicInt *atomic, bool enable, int shift)
|
|||||||
|
|
||||||
\snippet qloggingcategory/main.cpp 1
|
\snippet qloggingcategory/main.cpp 1
|
||||||
|
|
||||||
|
\note Category names are free text. However, to allow easy configuration
|
||||||
|
of the categories using \l{Logging Rules} the names should follow some rules:
|
||||||
|
\list
|
||||||
|
\li Use letters and numbers only.
|
||||||
|
\li Further structure categories into common areas by using dots.
|
||||||
|
\li Avoid the category names \c{debug}, \c{info}, \c{warning}, and \c{critical}.
|
||||||
|
\li Category names starting with \c{qt} are reserved for Qt modules.
|
||||||
|
\endlist
|
||||||
|
|
||||||
\section1 Checking Category Configuration
|
\section1 Checking Category Configuration
|
||||||
|
|
||||||
QLoggingCategory provides \l isDebugEnabled(), \l isInfoEnabled(),
|
QLoggingCategory provides \l isDebugEnabled(), \l isInfoEnabled(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user