Write log to output directory.