[Development] Categorized logging inside Qt
Frederik Gladhorn
frederik.gladhorn at digia.com
Thu Apr 10 19:20:58 CEST 2014
Hi all,
I just started to port accessibility to the new and shiny categorized logging.
http://blog.qt.digia.com/blog/2014/03/11/qt-weekly-1-categorized-logging/
I'd propose we decide on a certain style of declaring categories.
A quick grep shows that we already have some variety, I'd like to unify this
before Qt 5.3 is out of the door. I actually saw a patch adding DBG_FOOBAR as
new category, that made me wonder about which style we should use.
angle/src/d3dcompiler/main.cpp:61:Q_LOGGING_CATEGORY(QT_D3DCOMPILER,
"qt.angle.d3dcompiler")
corelib/doc/snippets/qloggingcategory/main.cpp:49:Q_LOGGING_CATEGORY(QT_DRIVER_USB,
"qt.driver.usb")
plugins/platforms/windows/qwindowscontext.cpp:82:Q_LOGGING_CATEGORY(lcQpaWindows,
"qt.qpa.windows")
plugins/platforms/windows/qwindowscontext.cpp:83:Q_LOGGING_CATEGORY(lcQpaBackingStore,
"qt.qpa.backingstore")
plugins/platforms/windows/qwindowscontext.cpp:84:Q_LOGGING_CATEGORY(lcQpaEvents,
"qt.qpa.events")
plugins/platforms/windows/qwindowscontext.cpp:85:Q_LOGGING_CATEGORY(lcQpaFonts,
"qt.qpa.fonts")
plugins/platforms/windows/qwindowscontext.cpp:86:Q_LOGGING_CATEGORY(lcQpaGl,
"qt.qpa.gl")
plugins/platforms/windows/qwindowscontext.cpp:87:Q_LOGGING_CATEGORY(lcQpaMime,
"qt.qpa.mime")
plugins/platforms/windows/qwindowscontext.cpp:88:Q_LOGGING_CATEGORY(lcQpaInputMethods,
"qt.qpa.inputmethods")
plugins/platforms/windows/qwindowscontext.cpp:89:Q_LOGGING_CATEGORY(lcQpaDialogs,
"qt.qpa.dialogs")
plugins/platforms/windows/qwindowscontext.cpp:90:Q_LOGGING_CATEGORY(lcQpaTablet,
"qt.qpa.tabletsupport")
plugins/platforms/windows/qwindowscontext.cpp:91:Q_LOGGING_CATEGORY(lcQpaAccessibility,
"qt.qpa.accessibility")
--
Best regards,
Frederik Gladhorn
Senior Software Engineer - Digia, Qt
Visit us on: http://qt.digia.com
More information about the Development
mailing list