[Interest] Logging best practice.

alex.blasche at nokia.com alex.blasche at nokia.com
Thu Dec 1 19:27:52 CET 2011



> -----Original Message-----
> From: interest-bounces+alex.blasche=nokia.com at qt-project.org
> [mailto:interest-bounces+alex.blasche=nokia.com at qt-project.org] On

>     is the state of the art use the debug functions (qDebug, qWarning, ...) in
> conjunction with a custom message handler (qInstallMsgHandler) for log to
> file system?
> I found very simple and useful this approach, but I think that a log function
> with message level is needed (i.e: qMessage() ) for a complete set of logging
> levels.
> Anyone else think that we need a new function with message log level?

I do. We are actually working on something based on qLog (http://docs.huihoo.com/qt/qtextended/4.4/debug-qtextended.html#qlog-categorized-logging)

Initially we only started to look at it because we needed something in QtSensors but I definitely see this as a more generic thing. Besides porting it to Qt5 we are still investigating its usefulness as a generic Qt5 thing. We should soon have some preliminary results.  

So I guess, watch this space...

--
Alex



More information about the Interest mailing list