Save file as .txt instead of .log
(cherry picked from commit 0cbb5da861cb91ebf871fe954f13c371d432d59f)