Redirect output to a log file

Otherwise it just goes lost.