Saving log file to ~/foo.txt doesn't work as 'expected'
When you save a log file to /foo.txt it creates a new folder called '' in pwd and saves a 'foo.txt' log file in that folder.
A more intuitive approach would be to expand '~' to the users $HOME dir.