Merge "Refactors logging into its own function" into qt-r1-dev