Redirect all output to a log file.