sample code to make qDebug log to specific location (file)