log Qt errors to file