add parse_log_for_error to filetools