Add support for logging to a file and saving dumps to a file