Write response to file.
Write log to file.