Logging
Write out log files at a specified (probably near the output file) place