Added support for logging from QML.