Alex Rivera | Logout

Logging facilities and Qt

Asked 2009-10-09T09:31:52.670
25

What logging facilities do you use whit Qt ?

Do you choose qDebug(), qWarning(), qCritical(), qFatal() methods, or maybe something like Log4cpp (Log4cplus etc.), or maybe some custom-maked code ?

Edit
Report

2 Answers

4

QDebug is the best way to go, as it presents out-of-the-box integration with the rest of the framework, doesn't make you dependent on 3rd party code and covers pretty all of the logging needs.

answered 2011-08-22T15:43:57.720
3

I'm not using Qt, but for logging I'm using a modified version of Dr'Dobb's Logging in C++. The original code can be found here.

My modifications are specific to the Microsoft Windows platform (fopen doesn't allow file read sharing) and can be found here.

answered 2009-10-09T09:45:23.773

Your Answer