ported the logging system to Qt 4.8 (issue #6)