removed logfile name dependency on outfile, which may not always be specified. There will always be an infile, so append .log to infile name