Create the log file name from the input file name by the same method as ly:parse-file so that the log file is written to the output directory rather than the input directory. Closes #6715.