PDA

View Full Version : advice on logging framework and packaging



angeshwar
26th October 2009, 09:56
All,

I have just started to use QT. I would like to know if QT provides any logging framework.
qDebug writes to console. Can we extend qDebug into a logging framework?

Since I come from a java background, I was wondering if QT has any package/folder structure?
It appears QT creator displays files individually, as the prohject becomes bigger and bigger
it becomes tedious to maintain project structure.

Also is there any unit testing framework recommended by QT.

Any advice on the above issues will be much appreciated.

jpn
26th October 2009, 10:09
I would like to know if QT provides any logging framework.
qDebug writes to console. Can we extend qDebug into a logging framework?

The Qt Extension Library offers QxtLogger (http://doc.libqxt.org/tip/classQxtLogger.html).


Also is there any unit testing framework recommended by QT.
See QTestLib

wysota
26th October 2009, 10:12
Can we extend qDebug into a logging framework?
Yes. See qInstallMsgHandler().


Since I come from a java background, I was wondering if QT has any package/folder structure?
Nope. You can use log4cpp if you want.


It appears QT creator displays files individually, as the prohject becomes bigger and bigger
it becomes tedious to maintain project structure.
Recent versions of Creator group files by directories. And you can always have subprojects (subdirs template for QMake) for functionality you use to provide additional groupping.


Also is there any unit testing framework recommended by QT.
Yes, see QTestLib.