Merge "Refactors logging into its own function" into qt-r1-dev am: ab6d79eefd
am: 202b070e2b

Change-Id: I91bcb966666a7d6512925e190c19d992fb049f09