Log all output to the log file
Major rewrite