[Development] Categorized logging inside Qt

Frederik Gladhorn frederik.gladhorn at digia.com
Wed Apr 23 12:38:42 CEST 2014


Since there was no further followup and no arguments against Kai's proposal, I 
think we can just agree on the issue as settled :)

Fredag 11. april 2014 06.31.18 skrev Koehne Kai:
> > -----Original Message-----
> > From: development-bounces+kai.koehne=digia.com at qt-project.org
> > [mailto:development-bounces+kai.koehne=digia.com at qt-project.org] On
> > Behalf Of Frederik Gladhorn
> > Sent: Thursday, April 10, 2014 7:21 PM
> > To: development at qt-project.org
> > Subject: [Development] Categorized logging inside Qt
> > 
> > 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.
> 
> We had some discussion about names at
> 
> https://codereview.qt-project.org/#patch,sidebyside,74862,1,src/corelib/io/q
> core_logging_p.h
> 
> (which wasn't integrated due to other discussions/waiting changes).
> 
> There was no real consensus, but the latest proposal was to use e.g.
> 
> Q_LOGGING_CATEGORY(qtCoreIo, "qt.core.io");
> 
> And declare /define them all in a qxxx_logging_p.h qxxx_logging.cpp file per
> module/plugin.

I propose to follow this convention and make it the standard.

-- 
Best regards,
Frederik Gladhorn
Senior Software Engineer - Digia, Qt
Visit us on: http://qt.digia.com




More information about the Development mailing list