Use AppendMode to write to the log.

Otherwise it will contain only the output of the command that was run last. If
the log already exists, delete it before opening to clear it from the results of
the last compilation.