dump the fail/error log to file