Loving qDebug? But missing some things? Just want to see your debugs/logs in a QtWidget, like QListView? But got crashes with qInstallMsgHandler (4.x) / qInstallMessageHandler (5.x)? Missing file name, line numbers with qDebug 4.x?
You are welcome, here we go!
Note: we fully support Qt5 via overloading qDebug() macro,
and Qt5 + Qt4.8 via using rDebug(), rInfo(), rWarning() a.s.o.
This is mostly a simplified re-implementation, which under the hood also uses parts of qDebug(). You can use
qDebug( "printf mask %s","is worse");
or
qDebug() << "streams" << "are more safe";
Or a mix of both. You can select between all 7 BSD-Syslog levels (plus "Silent" and "All"). A two-liner can send Qt SIGNAL with the data, time stamp, location and level to your QListWidget (or whatever). Another two-liner can write to file and use different log level filtering.
For the start, some features of Qt5, like qDebug( &stream_device ) << "are not supported"; // and may never com
Features
- logging
- qDebug
- logfile
- logwindow
- linux
- windows
- msys2
- windows64
- linux64
- Qt5