Hi folks
Is there a logging class for QT? Something like "log4j"...
Thanks in advance
Printable View
Hi folks
Is there a logging class for QT? Something like "log4j"...
Thanks in advance
You can use log4cxx. Or see qInstallMsgHandler to create your own one.
How about log4Qt (http://log4qt.sourceforge.net/)?
Is it good? does it affect the performance negatively in a noticeable way?
thanks a lot
No one using another class than QtDebug?
Is the state of the art use this debug funciton (qDebug, qWarning, ...) in conjunction with a custom message handler 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() ).
Thanks in advance,
Stefano.
Beginner for learning.
There is some work going on to get a more capable logging system into Qt. You might need to search the dev mailing list or git repo to find it.
Category logging coming in Qt 5.2
http://doc-snapshot.qt-project.org/q...gcategory.html
Cheers,
_